Przeglądaj źródła

[CI] Attempt to fix pypy3 build

Ask Solem 9 lat temu
rodzic
commit
e489f3cf1a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      celery/tests/bin/test_events.py

+ 1 - 1
celery/tests/bin/test_events.py

@@ -32,7 +32,7 @@ class test_events(AppCase):
     def test_run_top(self):
         try:
             import curses  # noqa
-        except ImportError:
+        except (ImportError, OSError):
             raise SkipTest('curses monitor requires curses')
 
         @_old_patch('celery.events.cursesmon', 'evtop',