diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-24 23:46:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 23:46:31 (GMT) |
commit | 235e7b2b0d937ba8b4a9172aa72206187e3e1f54 (patch) | |
tree | a0b6c4c0698c4ec2d911a6b798fc945eb430e8ad /Lib | |
parent | f4e4703e746067d6630410408d414b11003334d6 (diff) | |
download | cpython-235e7b2b0d937ba8b4a9172aa72206187e3e1f54.zip cpython-235e7b2b0d937ba8b4a9172aa72206187e3e1f54.tar.gz cpython-235e7b2b0d937ba8b4a9172aa72206187e3e1f54.tar.bz2 |
bpo-36465: Fix test_regrtest on Windows (GH-12945)
Fix Py_DEBUG constant: check for sys.gettotalrefcount attribute
rather than sys.getobjects.
Update also SpecialBuilds.txt documentation.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_regrtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index 6193776..a9febd0 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py @@ -21,7 +21,7 @@ from test import support from test.libregrtest import utils -Py_DEBUG = hasattr(sys, 'getobjects') +Py_DEBUG = hasattr(sys, 'gettotalrefcount') ROOT_DIR = os.path.join(os.path.dirname(__file__), '..', '..') ROOT_DIR = os.path.abspath(os.path.normpath(ROOT_DIR)) |