Skip to content

Commit af168df

Browse files
[3.11] gh-109848: Make test_rot13_func in test_codecs independent (GH-109850) (GH-110505)
(cherry picked from commit b987fdb) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 6823212 commit af168df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_codecs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,9 +3590,10 @@ class Rot13UtilTest(unittest.TestCase):
35903590
$ echo "Hello World" | python -m encodings.rot_13
35913591
"""
35923592
def test_rot13_func(self):
3593+
from encodings.rot_13 import rot13
35933594
infile = io.StringIO('Gb or, be abg gb or, gung vf gur dhrfgvba')
35943595
outfile = io.StringIO()
3595-
encodings.rot_13.rot13(infile, outfile)
3596+
rot13(infile, outfile)
35963597
outfile.seek(0)
35973598
plain_text = outfile.read()
35983599
self.assertEqual(

0 commit comments

Comments
 (0)