diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
commit | 1f70221b861a3714735251d57695b2f472d0599b (patch) | |
tree | 945cd43b04b6351e71c23aa0cb19f6fab1f3ddda /Lib/test/test_threading.py | |
parent | 284164b47638e4e71a933ce136a33fdd352f7bac (diff) | |
download | cpython-1f70221b861a3714735251d57695b2f472d0599b.zip cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.gz cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.bz2 |
Issue #19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index ac0b4bc..71f84f6 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -125,9 +125,7 @@ class ThreadTests(BaseTestCase): try: threading.stack_size(262144) except thread.error: - if verbose: - print 'platform does not support changing thread stack size' - return + self.skipTest('platform does not support changing thread stack size') self.test_various_ops() threading.stack_size(0) @@ -138,9 +136,7 @@ class ThreadTests(BaseTestCase): try: threading.stack_size(0x100000) except thread.error: - if verbose: - print 'platform does not support changing thread stack size' - return + self.skipTest('platform does not support changing thread stack size') self.test_various_ops() threading.stack_size(0) @@ -167,9 +163,7 @@ class ThreadTests(BaseTestCase): try: import ctypes except ImportError: - if verbose: - print "test_PyThreadState_SetAsyncExc can't import ctypes" - return # can't do anything + self.skipTest('requires ctypes') set_async_exc = ctypes.pythonapi.PyThreadState_SetAsyncExc @@ -275,9 +269,7 @@ class ThreadTests(BaseTestCase): try: import ctypes except ImportError: - if verbose: - print("test_finalize_with_runnning_thread can't import ctypes") - return # can't do anything + self.skipTest('requires ctypes') rc = subprocess.call([sys.executable, "-c", """if 1: import ctypes, sys, time, thread |