Skip to content

Commit bc04009

Browse files
committed
Fix print test flakyness on Windows platform
Signed-off-by: Ziheng Deng <zihengd@nvidia.com>
1 parent d857958 commit bc04009

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/_ext/doctest_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from sphinx.util import logging as sphinx_logging
4848
logger = sphinx_logging.getLogger(__name__)
4949

50-
_libc = ctypes.CDLL('msvcrt' if sys.platform == 'win32' else None)
50+
_libc = ctypes.CDLL('ucrtbase' if sys.platform == 'win32' else None)
5151

5252

5353
class _FdCaptureOut:

test/test_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# opt_level=0 required for correct print ordering in tileiras < 13.2
2424
_DEFAULT_OPT_LEVEL = CompilerOptions.__dataclass_fields__['opt_level'].default
2525
_OPT_LEVEL = 0 if get_tileiras_version() < BytecodeVersion.V_13_2 else _DEFAULT_OPT_LEVEL
26-
_libc = ctypes.CDLL('msvcrt' if sys.platform == 'win32' else None)
26+
_libc = ctypes.CDLL('ucrtbase' if sys.platform == 'win32' else None)
2727

2828

2929
def _run_kernel(kernel, x, tile):

0 commit comments

Comments
 (0)