Commit 75873038 authored by Jason Madden's avatar Jason Madden

Better reflect the way leaktests are handled now; this should restore...

Better reflect the way leaktests are handled now; this should restore test__backdoor to its FLAKY status on Travis.
parent 7e49528b
...@@ -5,7 +5,7 @@ import os ...@@ -5,7 +5,7 @@ import os
import sys import sys
CPYTHON_DBG = hasattr(sys, 'gettotalrefcount') LEAKTEST = os.getenv('GEVENTTEST_LEAKCHECK')
PYPY = hasattr(sys, 'pypy_version_info') PYPY = hasattr(sys, 'pypy_version_info')
PY3 = sys.version_info[0] >= 3 PY3 = sys.version_info[0] >= 3
...@@ -18,7 +18,7 @@ FAILING_TESTS = [ ...@@ -18,7 +18,7 @@ FAILING_TESTS = [
] ]
if os.environ.get('GEVENT_RESOLVER') == 'ares' or CPYTHON_DBG: if os.environ.get('GEVENT_RESOLVER') == 'ares' or LEAKTEST:
# XXX fix this # XXX fix this
FAILING_TESTS += [ FAILING_TESTS += [
'FLAKY test__socket_dns.py', 'FLAKY test__socket_dns.py',
...@@ -47,7 +47,7 @@ if sys.platform == 'win32': ...@@ -47,7 +47,7 @@ if sys.platform == 'win32':
] ]
if CPYTHON_DBG: if LEAKTEST:
FAILING_TESTS += ['FLAKY test__backdoor.py'] FAILING_TESTS += ['FLAKY test__backdoor.py']
FAILING_TESTS += ['FLAKY test__os.py'] FAILING_TESTS += ['FLAKY test__os.py']
...@@ -84,7 +84,7 @@ if PY3: ...@@ -84,7 +84,7 @@ if PY3:
FLAKY test__socket_dns.py FLAKY test__socket_dns.py
'''.strip().split('\n') '''.strip().split('\n')
if CPYTHON_DBG: if LEAKTEST:
FAILING_TESTS += ['FLAKY test__threadpool.py'] FAILING_TESTS += ['FLAKY test__threadpool.py']
# refcount problems: # refcount problems:
FAILING_TESTS += ''' FAILING_TESTS += '''
......
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