mirror of
https://github.com/python/cpython
synced 2024-10-14 09:31:57 +00:00
gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)
This commit is contained in:
parent
1aad4fc5db
commit
b987fdb19b
|
@ -3637,9 +3637,10 @@ class Rot13UtilTest(unittest.TestCase):
|
|||
$ echo "Hello World" | python -m encodings.rot_13
|
||||
"""
|
||||
def test_rot13_func(self):
|
||||
from encodings.rot_13 import rot13
|
||||
infile = io.StringIO('Gb or, be abg gb or, gung vf gur dhrfgvba')
|
||||
outfile = io.StringIO()
|
||||
encodings.rot_13.rot13(infile, outfile)
|
||||
rot13(infile, outfile)
|
||||
outfile.seek(0)
|
||||
plain_text = outfile.read()
|
||||
self.assertEqual(
|
||||
|
|
Loading…
Reference in a new issue