diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 12:26:35 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-03 12:26:35 (GMT) |
commit | 6ce7ed23d0449daa70f396486fae3c1014d93191 (patch) | |
tree | 9a77d8ccb6e6025159945a3a45abf401c99034f7 /Lib/test/test_capi.py | |
parent | 4bf108d74f2e36f16f4c0c00e7791e418e2d47ff (diff) | |
download | cpython-6ce7ed23d0449daa70f396486fae3c1014d93191.zip cpython-6ce7ed23d0449daa70f396486fae3c1014d93191.tar.gz cpython-6ce7ed23d0449daa70f396486fae3c1014d93191.tar.bz2 |
Revert previous checkin on getargs 'L' code. Try to convert all
numbers in PyLong_AsLongLong, and update test suite accordingly.
Backported to 2.4.
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r-- | Lib/test/test_capi.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 7196b7b..1dd2461 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -1,7 +1,7 @@ # Run the _testcapi module tests (tests for the Python/C API): by defn, # these are all functions _testcapi exports whose name begins with 'test_'. -import sys, unittest +import sys from test import test_support import _testcapi @@ -35,12 +35,6 @@ def TestThreadState(): raise test_support.TestFailed, \ "Couldn't find main thread correctly in the list" -# Tests which use _testcapi helpers -class OtherTests(unittest.TestCase): - def test_exc_L(self): - # This used to raise a SystemError(bad internal call) - self.assertRaises(TypeError, _testcapi.getargs_L, "String") - try: _testcapi._test_thread_state have_thread_state = True @@ -52,9 +46,3 @@ if have_thread_state: import threading t=threading.Thread(target=TestThreadState) t.start() - -def test_main(): - test_support.run_unittest(OtherTests) - -if __name__=='__main__': - test_main() |