Skip to content

Commit 1194f65

Browse files
committed
Don't use unicode chars in verbose graalpytests on windows
(cherry picked from commit f7e3a2b)
1 parent 0caaec5 commit 1194f65

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

graalpython/com.oracle.graal.python.test/src/graalpytest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ def get_useful_frame(self, tb):
374374
def run_safely(self, func, print_immediately=False):
375375
if verbose:
376376
with print_lock:
377-
print(u"\n\t\u21B3 ", func.__qualname__, " ", end="", flush=True)
377+
if sys.platform == 'win32':
378+
print(u"\n\t> ", func.__qualname__, " ", end="", flush=True)
379+
else:
380+
print(u"\n\t\u21B3 ", func.__qualname__, " ", end="", flush=True)
378381

379382
if func.__code__ is Mark.xfail(func).__code__:
380383
return _skipped_marker
@@ -768,7 +771,10 @@ def run(self):
768771
self.load_conftest(conftest)
769772

770773
if verbose:
771-
print(u"\n\u25B9 ", module.__name__, end="")
774+
if sys.platform == 'win32':
775+
print(u"\n> ", module.__name__, end="")
776+
else:
777+
print(u"\n\u25B9 ", module.__name__, end="")
772778
# some tests can modify the global scope leading to a RuntimeError: test_scope.test_nesting_plus_free_ref_to_global
773779
module_dict = dict(module.__dict__)
774780
for k, v in module_dict.items():

0 commit comments

Comments
 (0)