Commit 6f8bd125 authored by Ralf Schmitt's avatar Ralf Schmitt

make test__memleak.py not report a SystemExit error when run with py.test

parent a12f94bb
import sys
if not hasattr(sys, 'gettotalrefcount'):
sys.exit(0)
from greentest import TestCase, main
import gevent
......@@ -49,5 +47,8 @@ class TestQueue(TestCase):
assert b == c, 'total refcount mismatch: %s' % result
if not hasattr(sys, 'gettotalrefcount'):
del TestQueue
if __name__ == '__main__':
main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment