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 23cc8c0 commit 06be9daCopy full SHA for 06be9da
Lib/test/test_sys.py
@@ -778,6 +778,10 @@ def test_debugmallocstats(self):
778
@unittest.skipUnless(hasattr(sys, "getallocatedblocks"),
779
"sys.getallocatedblocks unavailable on this build")
780
def test_getallocatedblocks(self):
781
+ if (os.environ.get('PYTHONMALLOC', None)
782
+ and not sys.flags.ignore_environment):
783
+ self.skipTest("cannot test if PYTHONMALLOC env var is set")
784
+
785
# Some sanity checks
786
with_pymalloc = sysconfig.get_config_var('WITH_PYMALLOC')
787
a = sys.getallocatedblocks()
0 commit comments