Преглед изворни кода

[CI] Another curses import, breaking on pypy3

Ask Solem пре 9 година
родитељ
комит
5efd77f843
1 измењених фајлова са 1 додато и 1 уклоњено
  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