summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2013-07-19 21:53:42 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2013-07-19 21:53:42 (GMT)
commit14f5ee0a62e59a25d03c51e282e6f3727d0ea34d (patch)
tree65d9141aa3bc53af733b6e2a96852a684f4a71cb /Lib
parent138d080a28431a3437601e3297e7fe5d39edb574 (diff)
downloadcpython-14f5ee0a62e59a25d03c51e282e6f3727d0ea34d.zip
cpython-14f5ee0a62e59a25d03c51e282e6f3727d0ea34d.tar.gz
cpython-14f5ee0a62e59a25d03c51e282e6f3727d0ea34d.tar.bz2
Prevent dangling threads/process warning for test_multiprocessing.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_multiprocessing.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 17abade..aa985e3 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -3561,14 +3561,17 @@ def setUpModule():
try:
lock = multiprocessing.RLock()
except OSError:
- raise unittest.SkipTest("OSError raises on RLock creation, see issue 3111!")
-
+ raise unittest.SkipTest("OSError raises on RLock creation, "
+ "see issue 3111!")
check_enough_semaphores()
-
util.get_temp_dir() # creates temp directory for use by all processes
-
multiprocessing.get_logger().setLevel(LOG_LEVEL)
+def tearDownModule():
+ # pause a bit so we don't get warning about dangling threads/processes
+ time.sleep(0.5)
+
+
if __name__ == '__main__':
unittest.main()