Skip to content

Commit b987fdb

Browse files
gh-109848: Make test_rot13_func in test_codecs independent (GH-109850)
1 parent 1aad4fc commit b987fdb

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
@@ -3637,9 +3637,10 @@ class Rot13UtilTest(unittest.TestCase):
36373637
$ echo "Hello World" | python -m encodings.rot_13
36383638
"""
36393639
def test_rot13_func(self):
3640+
from encodings.rot_13 import rot13
36403641
infile = io.StringIO('Gb or, be abg gb or, gung vf gur dhrfgvba')
36413642
outfile = io.StringIO()
3642-
encodings.rot_13.rot13(infile, outfile)
3643+
rot13(infile, outfile)
36433644
outfile.seek(0)
36443645
plain_text = outfile.read()
36453646
self.assertEqual(

0 commit comments

Comments
 (0)