Skip to content

Commit a66cb49

Browse files
authored
Fix Windows test failures in CI (#12477)
Allow extension file names such as `native.pyd` in addition to `native.<python-version>.<ext>`. I'm not sure why the file names have changed, but the new file names seem okay as well. Fixes #12460.
1 parent 466be21 commit a66cb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/test/test_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
263263

264264
# Assert that an output file got created
265265
suffix = 'pyd' if sys.platform == 'win32' else 'so'
266-
assert glob.glob('native.*.{}'.format(suffix))
266+
assert glob.glob('native.*.{}'.format(suffix)) or glob.glob('native.{}'.format(suffix))
267267

268268
driver_path = 'driver.py'
269269
if not os.path.isfile(driver_path):

0 commit comments

Comments
 (0)