From: Antoine Pitrou Date: Tue, 3 Apr 2012 18:13:45 +0000 (+0200) Subject: Issue #14482: Raise a ValueError, not a NameError, when trying to create X-Git-Tag: v3.3.0a3~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c73e8eaf40e092dfb3c2a92195b300afc99d2cf;p=python 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. --- 5c73e8eaf40e092dfb3c2a92195b300afc99d2cf diff --cc Lib/test/test_multiprocessing.py index b4f511ccf8,298faf73fd..2bcdb4e07c --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@@ -2649,9 -2331,14 +2649,13 @@@ class TestInvalidFamily(unittest.TestCa 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] + TestStdinBadfiledescriptor, TestWait, TestInvalidFamily] # # diff --cc Misc/NEWS index e064b3a8c7,45e0c25f1f..0c3438a7d5 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -16,27 -16,6 +16,31 @@@ Core and Builtin - Issue #13019: Fix potential reference leaks in bytearray.extend(). Patch by Suman Saha. +Library +------- + ++- 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. ++ +- Issue #802310: Generate always unique tkinter font names if not directly passed. + +- Issue #14151: Raise a ValueError, not a NameError, when trying to create + a multiprocessing Client or Listener with an AF_PIPE type address under + non-Windows platforms. Patch by Popa Claudiu. + + +What's New in Python 3.3.0 Alpha 2? +=================================== + +*Release date: 01-Apr-2012* + +Core and Builtins +----------------- + +- Issue #1683368: object.__new__ and object.__init__ raise a TypeError if they + are passed arguments and their complementary method is not overridden. + - Issue #14378: Fix compiling ast.ImportFrom nodes with a "__future__" string as the module name that was not interned.