Skip to content

Commit 6298eda

Browse files
committed
[GR-43510] Fix tagged tests
PullRequest: graalpython/2634
2 parents 068b89e + d312b9a commit 6298eda

File tree

2 files changed

+1685
-2
lines changed

2 files changed

+1685
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def collect_working_tests():
8585
def make_test_function(working_test):
8686
testmod = working_test[0].rpartition(".")[2]
8787

88-
def test_tagged(max_patterns=100):
88+
def test_tagged():
89+
max_patterns = 250
8990
for working_test_group in grouper(working_test[1], max_patterns):
9091
cmd = [sys.executable]
9192
if "--inspect" in sys.argv:
@@ -96,7 +97,8 @@ def test_tagged(max_patterns=100):
9697
if "-vv" in sys.argv:
9798
cmd += ['-v']
9899
for testpattern in working_test_group:
99-
cmd.extend(["-k", testpattern])
100+
if testpattern:
101+
cmd.extend(["-k", testpattern])
100102
print("Running test:", working_test[0])
101103
testfile = os.path.join(os.path.dirname(test.__file__), "%s.py" % testmod)
102104
if not os.path.isfile(testfile):

0 commit comments

Comments
 (0)