diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index af64a6f..6a3c33f 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -862,7 +862,7 @@ class PosixTester(unittest.TestCase): try: init = posix.sched_getscheduler(1) except OSError as e: - if e.errno != errno.EPERM: + if e.errno != errno.EPERM and e.errno != errno.ESRCH: raise else: self.assertIn(init, possible_schedulers) |