summaryrefslogtreecommitdiff
path: root/Lib/test/test_extcall.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-21 17:34:54 +0000
committerBenjamin Peterson <benjamin@python.org>2010-03-21 17:34:54 +0000
commite39b2ec6ca7a399e9e25ee5bf9f5eed1c809816a (patch)
treeead2e177f44c6f33eb1cce296f5b89cfa313133a /Lib/test/test_extcall.py
parentcf82fa6f919b4e5a48d25f5c99c30ae9363b2508 (diff)
downloadcpython-git-e39b2ec6ca7a399e9e25ee5bf9f5eed1c809816a.tar.gz
rewrite a bit
Diffstat (limited to 'Lib/test/test_extcall.py')
-rw-r--r--Lib/test/test_extcall.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py
index a10887e163..d9598e7e54 100644
--- a/Lib/test/test_extcall.py
+++ b/Lib/test/test_extcall.py
@@ -1,4 +1,7 @@
# -*- coding: utf-8 -*-
+
+import sys
+
"""Doctest for method/function calls.
We're going the use these types for extra testing
@@ -275,7 +278,7 @@ import unittest
from test import test_support
-class UnicodeKeywordArgsTest(unittest.TestCase):
+class ExtCallTest(unittest.TestCase):
def test_unicode_keywords(self):
def f(a):
@@ -292,9 +295,8 @@ class UnicodeKeywordArgsTest(unittest.TestCase):
def test_main():
- from test import test_extcall # self import
- test_support.run_doctest(test_extcall, True)
- test_support.run_unittest(UnicodeKeywordArgsTest)
+ test_support.run_doctest(sys.modules[__name__], True)
+ test_support.run_unittest(ExtCallTest)
if __name__ == '__main__':
test_main()