diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-03 18:12:23 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-03 18:12:23 (GMT) |
commit | 6d20cba8d646ec055851afac5494cc0e72d0dfa8 (patch) | |
tree | ea0cb833c40eb79eddd50324d6e42a2bedc2d298 /Lib/test/test_multiprocessing.py | |
parent | 28b8b947601c4e414bb833e0154aecc9375be631 (diff) | |
download | cpython-6d20cba8d646ec055851afac5494cc0e72d0dfa8.zip cpython-6d20cba8d646ec055851afac5494cc0e72d0dfa8.tar.gz cpython-6d20cba8d646ec055851afac5494cc0e72d0dfa8.tar.bz2 |
Issue #14482: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows. Patch by Popa Claudiu.
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r-- | Lib/test/test_multiprocessing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 8de7a8d..298faf7 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -2331,6 +2331,12 @@ class TestInvalidFamily(unittest.TestCase): with self.assertRaises(ValueError): multiprocessing.connection.Listener(r'\\.\test') + @unittest.skipUnless(WIN32, "skipped on non-Windows platforms") + def test_invalid_family_win32(self): + with self.assertRaises(ValueError): + multiprocessing.connection.Listener('/var/test.pipe') + + testcases_other = [OtherTest, TestInvalidHandle, TestInitializers, TestStdinBadfiledescriptor, TestInvalidFamily] |