diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 358c92da219..0b65bbd3cf1 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1282,7 +1282,7 @@ class ProgramPriorityTests(unittest.TestCase): try: os.setpriority(os.PRIO_PROCESS, os.getpid(), base) except OSError as err: - if err.errno != errno.EACCESS: + if err.errno != errno.EACCES: raise