[Python-checkins] r79205 - python/trunk/Lib/test/test_extcall.py
benjamin.peterson
python-checkins at python.org
Sun Mar 21 18:34:55 CET 2010
Author: benjamin.peterson
Date: Sun Mar 21 18:34:54 2010
New Revision: 79205
Log:
rewrite a bit
Modified:
python/trunk/Lib/test/test_extcall.py
Modified: python/trunk/Lib/test/test_extcall.py
==============================================================================
--- python/trunk/Lib/test/test_extcall.py (original)
+++ python/trunk/Lib/test/test_extcall.py Sun Mar 21 18:34:54 2010
@@ -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 @@
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 @@
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()
More information about the Python-checkins
mailing list