Skip to content

Commit

Permalink
gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Oct 7, 2023
1 parent 1aad4fc commit b987fdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b987fdb

Please sign in to comment.