Skip to content

Commit d4606ef

Browse files
committed
leak tests: do a better job skipping if uss isn't available. Fixes #485
1 parent 74a11b8 commit d4606ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/greenlet/tests/test_leaks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ def _check_untracked_memory_thread(self, deallocate_in_thread=True):
365365
# Like the above test, but what if there are a bunch of
366366
# unfinished greenlets in a thread that dies?
367367
# Does it matter if we deallocate in the thread or not?
368+
369+
# First, make sure we can get useful measurements. This will
370+
# be skipped if not.
371+
self.get_process_uss()
372+
368373
EXIT_COUNT = [0]
369374

370375
def f():

0 commit comments

Comments
 (0)