]> granicus.if.org Git - python/commitdiff
Issue #14482: Raise a ValueError, not a NameError, when trying to create
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 3 Apr 2012 18:13:45 +0000 (20:13 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 3 Apr 2012 18:13:45 +0000 (20:13 +0200)
a multiprocessing Client or Listener with an AF_UNIX type address under
Windows.  Patch by Popa Claudiu.

1  2 
Lib/multiprocessing/connection.py
Lib/test/test_multiprocessing.py
Misc/NEWS

Simple merge
index b4f511ccf852cd117771957becdf95f18ca6cb86,298faf73fd5d9cbda1bb23f3ce0d2448b6e225ce..2bcdb4e07c08d129f6dd26a17d6ef015e91b8776
@@@ -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 e064b3a8c76e31a3f17e851a56e92de399196ea2,45e0c25f1f32047061aef497b1f365fd091505e9..0c3438a7d5bb419a971267961774112e223a51b8
+++ 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.