Skip to content

Commit 424ad85

Browse files
committed
Python2+3: make.py -n
1 parent 1dd39fb commit 424ad85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,7 @@ def test_known(string):
911911
raise ArgumentTypeError("{0} does not index a test. The accepted range is 0 to {1}\nThe test mapping is:\n{2}".format(i, len(TEST_MAP) - 1, columnate([str(i) + ":" + t['id'] for i,t in zip(range(len(TESTS)), TESTS)])))
912912

913913
def test_name_known(string):
914-
if string not in TEST_MAP.keys() and \
915-
(getattr(ps, "test_alias", None) is None):
914+
if string not in TEST_MAP.keys():
916915
raise ArgumentTypeError("Program with name '{0}' not found. Supported tests are: \n{1}".format(string, columnate([t['id'] for t in TESTS])))
917916

918917
return TEST_MAP[string].n

0 commit comments

Comments
 (0)