summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-11-27 12:05:14 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-11-27 12:05:14 (GMT)
commit27bc4d07cc22740d46b8fe8dc0497a85d7a6d15e (patch)
treed23526a18156591fff39914c6f564526c3cf07e4
parent93a1175bacd415061ac61107e58f24fe9ced82ff (diff)
downloadcpython-27bc4d07cc22740d46b8fe8dc0497a85d7a6d15e.zip
cpython-27bc4d07cc22740d46b8fe8dc0497a85d7a6d15e.tar.gz
cpython-27bc4d07cc22740d46b8fe8dc0497a85d7a6d15e.tar.bz2
Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X.
-rw-r--r--Lib/test/test_os.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index eab8f52..eec1621 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -361,6 +361,10 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
value = popen.read().strip()
self.assertEqual(value, "World")
+ # On FreeBSD < 7 and OS X < 10.6, unsetenv() doesn't return a value (issue
+ # #13415).
+ @unittest.skipIf(sys.platform.startswith(('freebsd', 'darwin')),
+ "due to known OS bug: see issue #13415")
def test_unset_error(self):
if sys.platform == "win32":
# an environment variable is limited to 32,767 characters