cpython: 5198e8f325f5 (original) (raw)
Mercurial > cpython
changeset 87058:5198e8f325f5 3.3
Issue #19440: Clean up test_capi [#19440]
Zachary Ware zachary.ware@gmail.com | |
---|---|
date | Mon, 11 Nov 2013 22:47:04 -0600 |
parents | b689e48855cc |
children | 26108b2761aa 1537f14cc690 |
files | Lib/test/test_capi.py Misc/NEWS |
diffstat | 2 files changed, 11 insertions(+), 13 deletions(-)[+] [-] Lib/test/test_capi.py 20 Misc/NEWS 4 |
line wrap: on
line diff
--- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -1,7 +1,6 @@
Run the _testcapi module tests (tests for the Python/C API): by defn,
these are all functions testcapi exports whose name begins with 'test'.
-from future import with_statement import os import pickle import random @@ -351,17 +350,12 @@ class TestThreadState(unittest.TestCase) t.start() t.join() - -def test_main():
- support.run_unittest(CAPITest, TestPendingCalls, Test6012,
EmbeddingTest, SkipitemTest, TestThreadState)[](#l1.18)
- for name in dir(_testcapi):
if name.startswith('test_'):[](#l1.21)
test = getattr(_testcapi, name)[](#l1.22)
if support.verbose:[](#l1.23)
print("internal", name)[](#l1.24)
test()[](#l1.25)
+class Test_testcapi(unittest.TestCase):
- def test__testcapi(self):
for name in dir(_testcapi):[](#l1.28)
if name.startswith('test_'):[](#l1.29)
test = getattr(_testcapi, name)[](#l1.30)
test()[](#l1.31)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -42,6 +42,10 @@ Library Tests ----- +- Issue #19440: Clean up test_capi by removing an unnecessary future