diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 21:32:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-22 21:32:28 (GMT) |
commit | 9329029ed7f85a758f458437aafe16d8ca66df8a (patch) | |
tree | 58a99b156d704b73b0bcc79d66974d3770e35892 /Lib/test/test_os.py | |
parent | cbbd562f00053fb8e5113e9f66a5efc43790d314 (diff) | |
parent | b3f82680313389bf41fd8c70620b1c336fc36ed8 (diff) | |
download | cpython-9329029ed7f85a758f458437aafe16d8ca66df8a.zip cpython-9329029ed7f85a758f458437aafe16d8ca66df8a.tar.gz cpython-9329029ed7f85a758f458437aafe16d8ca66df8a.tar.bz2 |
(Merge 3.2) Issue #13436: Fix unsetenv() test on Windows
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index f95d286..ef5f805 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -451,10 +451,11 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol): if sys.platform == "win32": # an environment variable is limited to 32,767 characters key = 'x' * 50000 + self.assertRaises(ValueError, os.environ.__delitem__, key) else: # "=" is not allowed in a variable name key = 'key=' - self.assertRaises(OSError, os.environ.__delitem__, key) + self.assertRaises(OSError, os.environ.__delitem__, key) class WalkTests(unittest.TestCase): """Tests for os.walk().""" |