summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-03 21:15:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-03 21:15:46 (GMT)
commit32e23e739f858fcf47332e437d6c4d4f14b2b697 (patch)
tree80ed9b1174783a948655f5b47c26b70f135a894d /Lib/test/test_set.py
parent68f518ce4a700854d3c9b0fef145b9af79883df9 (diff)
downloadcpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.zip
cpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.tar.gz
cpython-32e23e739f858fcf47332e437d6c4d4f14b2b697.tar.bz2
Issue #18702: All skipped tests now reported as skipped.
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 8db26ed..9db7394 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -561,10 +561,10 @@ class TestSet(TestJointOps):
s = None
self.assertRaises(ReferenceError, str, p)
- # C API test only available in a debug build
- if hasattr(set, "test_c_api"):
- def test_c_api(self):
- self.assertEqual(set().test_c_api(), True)
+ @unittest.skipUnless(hasattr(set, "test_c_api"),
+ 'C API test only available in a debug build')
+ def test_c_api(self):
+ self.assertEqual(set().test_c_api(), True)
class SetSubclass(set):
pass