Kaydet (Commit) e39b2ec6 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

rewrite a bit

üst cf82fa6f
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys
"""Doctest for method/function calls. """Doctest for method/function calls.
We're going the use these types for extra testing We're going the use these types for extra testing
...@@ -275,7 +278,7 @@ import unittest ...@@ -275,7 +278,7 @@ import unittest
from test import test_support from test import test_support
class UnicodeKeywordArgsTest(unittest.TestCase): class ExtCallTest(unittest.TestCase):
def test_unicode_keywords(self): def test_unicode_keywords(self):
def f(a): def f(a):
...@@ -292,9 +295,8 @@ class UnicodeKeywordArgsTest(unittest.TestCase): ...@@ -292,9 +295,8 @@ class UnicodeKeywordArgsTest(unittest.TestCase):
def test_main(): def test_main():
from test import test_extcall # self import test_support.run_doctest(sys.modules[__name__], True)
test_support.run_doctest(test_extcall, True) test_support.run_unittest(ExtCallTest)
test_support.run_unittest(UnicodeKeywordArgsTest)
if __name__ == '__main__': if __name__ == '__main__':
test_main() test_main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment