From 692f038a5dad826254fe73050063862d76dc7baa Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 26 Feb 2011 00:22:25 +0000 Subject: [PATCH] Fix AttributeError. --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 358c92da21..0b65bbd3cf 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 -- 2.50.1