summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-26 00:22:25 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-26 00:22:25 (GMT)
commit692f038a5dad826254fe73050063862d76dc7baa (patch)
treee0c728ac9b23b5ef546c8c6a16d33d2869708603 /Lib/test/test_os.py
parent5c2f4640a7d1b3b410cd216c7b7c72d1aa3f6204 (diff)
downloadcpython-692f038a5dad826254fe73050063862d76dc7baa.zip
cpython-692f038a5dad826254fe73050063862d76dc7baa.tar.gz
cpython-692f038a5dad826254fe73050063862d76dc7baa.tar.bz2
Fix AttributeError.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 358c92d..0b65bbd 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