Issue #12573: Add resource checks for dangling Thread and Process objects.
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 Jul 2011 20:15:38 +0000 (22:15 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 15 Jul 2011 20:15:38 +0000 (22:15 +0200)
1  2 
Lib/multiprocessing/process.py
Lib/test/regrtest.py
Lib/threading.py
Misc/NEWS

Simple merge
index 528f46a18e701aab7cd799fd898f59ff656028b0,8ca7f6c07f8f7cfdb32d72840ae6fc08af06e7af..4444f572aab61b3339764380f810e3fdd4f2b5ab
@@@ -929,8 -872,9 +938,9 @@@ class saved_test_environment
      resources = ('sys.argv', 'cwd', 'sys.stdin', 'sys.stdout', 'sys.stderr',
                   'os.environ', 'sys.path', 'sys.path_hooks', '__import__',
                   'warnings.filters', 'asyncore.socket_map',
 -                 'logging._handlers', 'logging._handlerList',
 +                 'logging._handlers', 'logging._handlerList', 'sys.gettrace',
-                  'sys.warnoptions')
+                  'sys.warnoptions', 'threading._dangling',
+                  'multiprocessing.process._dangling')
  
      def get_sys_argv(self):
          return id(sys.argv), sys.argv, sys.argv[:]
Simple merge
diff --cc Misc/NEWS
index 806752148a9b9361cf21aba9f18f2236dff3293d,00bce493a8c10aab2b5f335bf3c4dd5118650d9d..e75de01c3db0b33cf4b0ff8a0ef76ccb74aae4bf
+++ b/Misc/NEWS
@@@ -1036,76 -706,6 +1036,78 @@@ Extension Module
  Tests
  -----
  
++- Issue #12573: Add resource checks for dangling Thread and Process objects.
++
 +- Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
 +  as the processor type on some Mac systems.
 +
 +- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
 +  failure in name resolution.
 +
 +- Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
 +  an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
 +  Web site.
 +
 +- Avoid failing in test_urllibnet.test_bad_address when some overzealous
 +  DNS service (e.g. OpenDNS) resolves a non-existent domain name.  The test
 +  is now skipped instead.
 +
 +- Issue #12440: When testing whether some bits in SSLContext.options can be
 +  reset, check the version of the OpenSSL headers Python was compiled against,
 +  rather than the runtime version of the OpenSSL library.
 +
 +- Issue #11512: Add a test suite for the cgitb module. Patch by Robbie Clemons.
 +
 +- Issue #12497: Install test/data to prevent failures of the various codecmaps
 +  tests.
 +
 +- Issue #12496: Install test/capath directory to prevent test_connect_capath
 +  testcase failure in test_ssl.
 +
 +- Issue #12469: Run wakeup and pending signal tests in a subprocess to run the
 +  test in a fresh process with only one thread and to not change signal
 +  handling of the parent process.
 +
 +- Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
 +  test_tk or test_ttk_guionly under a username that is not currently logged
 +  in to the console windowserver (as may be the case under buildbot or ssh).
 +
 +- Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
 +
 +- Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
 +  the output and displays it on failure instead. regrtest -v doesn't print the
 +  error twice anymore if there is only one error.
 +
 +- Issue #12141: Install copies of template C module file so that
 +  test_build_ext of test_distutils and test_command_build_ext of
 +  test_packaging are no longer silently skipped when
 +  run outside of a build directory.
 +
 +- Issue #8746: Add additional tests for os.chflags() and os.lchflags().
 +  Patch by Garrett Cooper.
 +
 +- Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
 +  2.8 +  on Mac OS X.  (Patch by Ronald Oussoren)
 +
 +- Issue #12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2,
 +  iso2022_kr).
 +
 +- Issue #12180: Fixed a few remaining errors in test_packaging when no
 +  threading.
 +
 +- Issue #12120, #12119: skip a test in packaging and distutils
 +  if sys.dont_write_bytecode is set to True.
 +
 +- Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
 +  written by Charles-François Natali.
 +
 +- Issue #11614: import __hello__ prints "Hello World!". Patch written by
 +  Andreas Stührk.
 +
 +- Issue #5723: Improve json tests to be executed with and without accelerations.
 +
 +- Issue #12041: Make test_wait3 more robust.
 +
  - Issue #11873: Change regex in test_compileall to fix occasional failures when
    when the randomly generated temporary path happened to match the regex.