Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af168df

Browse filesBrowse 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 <storchaka@gmail.com>
1 parent 6823212 commit af168df
Copy full SHA for af168df

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎Lib/test/test_codecs.py

Copy file name to clipboardExpand all lines: Lib/test/test_codecs.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.