Skip to content

Commit fa1e7e0

Browse files
committed
Pass --retag in mx python-retag-unittests
1 parent 00a086b commit fa1e7e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -106,8 +106,8 @@ def fun(self):
106106
import re
107107

108108
executable = sys.executable.split(" ") # HACK: our sys.executable on Java is a cmdline
109-
re_success = re.compile("(test\S+) \(([^\s]+)\) \.\.\. ok$", re.MULTILINE)
110-
re_failure = re.compile("(test\S+) \(([^\s]+)\) \.\.\. (?:ERROR|FAIL)$", re.MULTILINE)
109+
re_success = re.compile(r"(test\S+) \(([^\s]+)\) \.\.\. ok$", re.MULTILINE)
110+
re_failure = re.compile(r"(test\S+) \(([^\s]+)\) \.\.\. (?:ERROR|FAIL)$", re.MULTILINE)
111111
kwargs = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE, "text": True, "check": False}
112112

113113
glob_pattern = os.path.join(os.path.dirname(test.__file__), "test_*.py")

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def python3_unittests(args):
221221
def retag_unittests(args):
222222
"""run the cPython stdlib unittests"""
223223
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true"):
224-
python(["graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py"] + args)
224+
python(["graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py", '--retag'] + args)
225225

226226

227227
AOT_INCOMPATIBLE_TESTS = ["test_interop.py"]

0 commit comments

Comments
 (0)