Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b2712 commit e255764Copy full SHA for e255764
1 file changed
Lib/test/test_cmd_line.py
@@ -136,12 +136,11 @@ def test_run_code(self):
136
0)
137
138
# Test handling of non-ascii data
139
- if test.support.verbose:
140
- print("FileSystemEncoding:", sys.getfilesystemencoding())
141
- command = "assert(ord('\xe9') == 0xe9)"
142
- self.assertEqual(
143
- self.exit_code('-c', command),
144
- 0)
+ if sys.getfilesystemencoding() != 'ascii':
+ command = "assert(ord('\xe9') == 0xe9)"
+ self.assertEqual(
+ self.exit_code('-c', command),
+ 0)
145
146
147
def test_main():
0 commit comments