mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
This commit is contained in:
commit
bae75cf3fe
11 changed files with 29 additions and 6 deletions
|
@ -3165,6 +3165,7 @@ class TextIOWrapperTest(unittest.TestCase):
|
|||
""".format(iomod=iomod, kwargs=kwargs)
|
||||
return assert_python_ok("-c", code)
|
||||
|
||||
@support.requires_type_collecting
|
||||
def test_create_at_shutdown_without_encoding(self):
|
||||
rc, out, err = self._check_create_at_shutdown()
|
||||
if err:
|
||||
|
@ -3174,6 +3175,7 @@ class TextIOWrapperTest(unittest.TestCase):
|
|||
else:
|
||||
self.assertEqual("ok", out.decode().strip())
|
||||
|
||||
@support.requires_type_collecting
|
||||
def test_create_at_shutdown_with_encoding(self):
|
||||
rc, out, err = self._check_create_at_shutdown(encoding='utf-8',
|
||||
errors='strict')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue