Skip to content

Commit 481aa7a

Browse files
[3.12] gh-109848: Make test_rot13_func in test_codecs independent (GH-109850) (GH-110504)
(cherry picked from commit b987fdb) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 6430ca5 commit 481aa7a

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
@@ -3567,9 +3567,10 @@ class Rot13UtilTest(unittest.TestCase):
35673567
$ echo "Hello World" | python -m encodings.rot_13
35683568
"""
35693569
def test_rot13_func(self):
3570+
from encodings.rot_13 import rot13
35703571
infile = io.StringIO('Gb or, be abg gb or, gung vf gur dhrfgvba')
35713572
outfile = io.StringIO()
3572-
encodings.rot_13.rot13(infile, outfile)
3573+
rot13(infile, outfile)
35733574
outfile.seek(0)
35743575
plain_text = outfile.read()
35753576
self.assertEqual(

0 commit comments

Comments
 (0)