diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 18:16:28 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-02 18:16:28 (GMT) |
commit | 317d350f9c535fff36f15e4d3b8adb3be222eebd (patch) | |
tree | 7b1688f8c4135026a66179da698d87503007ca92 | |
parent | b8a1a2707bb37eb68bc49b89d7eb00d9bb756b93 (diff) | |
download | cpython-317d350f9c535fff36f15e4d3b8adb3be222eebd.zip cpython-317d350f9c535fff36f15e4d3b8adb3be222eebd.tar.gz cpython-317d350f9c535fff36f15e4d3b8adb3be222eebd.tar.bz2 |
Moved Unicode C API related tests to separate test class.
-rw-r--r-- | Lib/test/test_unicode.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 93224e1..0f2cf21 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -1665,6 +1665,13 @@ class UnicodeTest( self.assertEqual("%s" % u, u'__unicode__ overridden') self.assertEqual("{}".format(u), '__unicode__ overridden') + def test_free_after_iterating(self): + test_support.check_free_after_iterating(self, iter, unicode) + test_support.check_free_after_iterating(self, reversed, unicode) + + +class CAPITest(unittest.TestCase): + # Test PyUnicode_FromFormat() def test_from_format(self): test_support.import_module('ctypes') @@ -1857,11 +1864,6 @@ class UnicodeTest( unicode_encodedecimal(u"123" + s, "xmlcharrefreplace"), '123' + exp) - def test_free_after_iterating(self): - test_support.check_free_after_iterating(self, iter, unicode) - test_support.check_free_after_iterating(self, reversed, unicode) - - def test_main(): test_support.run_unittest(__name__) |