Browse Source

[CI] Another curses import, breaking on pypy3

Ask Solem 9 năm trước cách đây
mục cha
commit
5efd77f843
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/tests/events/test_cursesmon.py

+ 1 - 1
celery/tests/events/test_cursesmon.py

@@ -14,7 +14,7 @@ class test_CursesDisplay(AppCase):
     def setup(self):
         try:
             import curses  # noqa
-        except ImportError:
+        except (ImportError, OSError):
             raise SkipTest('curses monitor requires curses')
 
         from celery.events import cursesmon