summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-12-08 07:38:16 (GMT)
committerGitHub <noreply@github.com>2019-12-08 07:38:16 (GMT)
commit6cac1136665b70f72db291b95876d7affcf1d2db (patch)
treebaf9af65677cacb92ec5d10d8567e90bf8246b17 /Lib/test/test_gc.py
parent2b7de6696bf2f924cd2cd9ff0a539c8aa37c6244 (diff)
downloadcpython-6cac1136665b70f72db291b95876d7affcf1d2db.zip
cpython-6cac1136665b70f72db291b95876d7affcf1d2db.tar.gz
cpython-6cac1136665b70f72db291b95876d7affcf1d2db.tar.bz2
bpo-38991: Remove test.support.strip_python_stderr() (GH-17490)
test.support: run_python_until_end(), assert_python_ok() and assert_python_failure() functions no longer strip whitespaces from stderr.
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index fdb8752..c0d4a75 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -1,7 +1,7 @@
import unittest
import unittest.mock
from test.support import (verbose, refcount_test, run_unittest,
- strip_python_stderr, cpython_only, start_threads,
+ cpython_only, start_threads,
temp_dir, requires_type_collecting, TESTFN, unlink,
import_module)
from test.support.script_helper import assert_python_ok, make_script
@@ -671,8 +671,8 @@ class GCTests(unittest.TestCase):
p.stdout.close()
p.stderr.close()
self.assertEqual(p.returncode, 0)
- self.assertEqual(stdout.strip(), b"")
- return strip_python_stderr(stderr)
+ self.assertEqual(stdout, b"")
+ return stderr
stderr = run_command(code % "0")
self.assertIn(b"ResourceWarning: gc: 2 uncollectable objects at "