diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-18 13:59:58 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-18 13:59:58 (GMT) |
commit | 3321fb8e3a4cc78e700254b87435e57e9c9f29d0 (patch) | |
tree | 0b7823f9563296c76dc8b6afc1052e0fd81de574 /Lib/test/test_capi.py | |
parent | 8acc3c574a48905600b2b8d58f7cd7bbf7abc2e4 (diff) | |
download | cpython-3321fb8e3a4cc78e700254b87435e57e9c9f29d0.zip cpython-3321fb8e3a4cc78e700254b87435e57e9c9f29d0.tar.gz cpython-3321fb8e3a4cc78e700254b87435e57e9c9f29d0.tar.bz2 |
Issue #16129: this should appease the buildbots
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r-- | Lib/test/test_capi.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 3324c37..99b5f8c 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -260,7 +260,6 @@ class EmbeddingTests(unittest.TestCase): print(out) print(err) - @unittest.skip def test_forced_io_encoding(self): # Checks forced configuration of embedded interpreter IO streams out, err = self.run_embedded_interpreter("forced_io_encoding") @@ -272,15 +271,15 @@ class EmbeddingTests(unittest.TestCase): --- Use defaults --- Expected encoding: default Expected errors: default - stdin: {0.stdin.encoding}:strict - stdout: {0.stdout.encoding}:strict - stderr: {0.stderr.encoding}:backslashreplace + stdin: {0.__stdin__.encoding}:strict + stdout: {0.__stdout__.encoding}:strict + stderr: {0.__stderr__.encoding}:backslashreplace --- Set errors only --- Expected encoding: default Expected errors: surrogateescape - stdin: {0.stdin.encoding}:surrogateescape - stdout: {0.stdout.encoding}:surrogateescape - stderr: {0.stderr.encoding}:backslashreplace + stdin: {0.__stdin__.encoding}:surrogateescape + stdout: {0.__stdout__.encoding}:surrogateescape + stderr: {0.__stderr__.encoding}:backslashreplace --- Set encoding only --- Expected encoding: latin-1 Expected errors: default @@ -293,7 +292,7 @@ class EmbeddingTests(unittest.TestCase): stdin: latin-1:surrogateescape stdout: latin-1:surrogateescape stderr: latin-1:backslashreplace""").format(sys) - # Looks like this overspecifies the output :( + # This is useful if we ever trip over odd platform behaviour self.maxDiff = None self.assertEqual(out.strip(), expected_output) |