From 5443d52533914288b1da9ed121da0d722420c840 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Mon, 28 Mar 2022 13:51:14 +0100 Subject: [PATCH] Fix Windows test failures in CI Allow extension file names such as `native.pyd` in addition to `native..`. I'm not sure why the file names have changed, but the new file names seem okay as well. Fixes #12460. --- mypyc/test/test_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypyc/test/test_run.py b/mypyc/test/test_run.py index a5e356ea56a6..2a2aa8fae0e4 100644 --- a/mypyc/test/test_run.py +++ b/mypyc/test/test_run.py @@ -263,7 +263,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> # Assert that an output file got created suffix = 'pyd' if sys.platform == 'win32' else 'so' - assert glob.glob('native.*.{}'.format(suffix)) + assert glob.glob('native.*.{}'.format(suffix)) or glob.glob('native.{}'.format(suffix)) driver_path = 'driver.py' if not os.path.isfile(driver_path):