mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
rewrite a bit
This commit is contained in:
parent
cf82fa6f91
commit
e39b2ec6ca
1 changed files with 6 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue