Skip to content

Commit 9b6ce15

Browse files
m
1 parent 5aa5758 commit 9b6ce15

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/reproduce_bug.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,28 @@ jobs:
1919
python-version: "3.14"
2020
architecture: x86
2121

22-
- name: Create standalone test file
22+
- name: Create multiple test files
2323
run: |
24-
@"
24+
# Create 50 test files with Unicode parameters
25+
for ($i=1; $i -le 50; $i++) {
26+
@"
2527
import pytest
2628
2729
@pytest.mark.parametrize('key1,key2', [
28-
('\U00010002abc', 'abc\u79d8\u5bc6\u4ee3\u7801'),
29-
('test1', 'test2'),
30-
('\U00010002', '\u79d8\u5bc6'),
30+
('\U00010002abc$i', 'abc\u79d8\u5bc6\u4ee3\u7801$i'),
31+
('test1_$i', 'test2_$i'),
32+
('\U00010002_$i', '\u79d8\u5bc6_$i'),
3133
])
32-
def test_unicode_params(key1, key2):
34+
def test_unicode_params_$i(key1, key2):
3335
assert len(key1) > 0
3436
assert len(key2) > 0
35-
"@ | Out-File -FilePath test_standalone.py -Encoding utf8
37+
import warnings
38+
warnings.warn(f'Test warning {key1} {key2}')
39+
"@ | Out-File -FilePath "test_$i.py" -Encoding utf8
40+
}
3641
3742
- name: Install pytest
3843
run: pip install pytest==8.0.0
3944

40-
- name: Run standalone test (will crash)
41-
run: pytest test_standalone.py -vv
45+
- name: Run all tests (will crash)
46+
run: pytest test_*.py -vv

0 commit comments

Comments
 (0)