[pypy-commit] pypy default: Bogus interaction with option.keyword: running
arigo
pypy.commits at gmail.com
Sun Jun 5 06:22:52 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r84932:ac692f14d8b4
Date: 2016-06-05 12:08 +0200
http://bitbucket.org/pypy/pypy/changeset/ac692f14d8b4/
Log: Bogus interaction with option.keyword: running
py.test test_newgc.py -k test_foo:
would run only foo and skip all other tests
diff --git a/rpython/translator/c/test/test_newgc.py b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -69,7 +69,7 @@
if not fullname.startswith('define'):
continue
keyword = option.keyword
- if keyword.startswith('test_'):
+ if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
@@ -93,6 +93,7 @@
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
+ assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
More information about the pypy-commit
mailing list