File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,12 @@ def latin1_fail():
89
89
)
90
90
91
91
92
+ skip_under_xdist = pytest .mark .skipif (
93
+ "os.environ.get('PYTEST_XDIST_WORKER')" ,
94
+ reason = "pytest-dev/pytest-xdist#843" ,
95
+ )
96
+
97
+
92
98
def touch (path ):
93
99
path .write_text ('' , encoding = 'utf-8' )
94
100
@@ -322,10 +328,7 @@ def test_write_manifest_allows_utf8_filenames(self):
322
328
# The filelist should have been updated as well
323
329
assert u_filename in mm .filelist .files
324
330
325
- @pytest .mark .skipif (
326
- "os.environ.get('PYTEST_XDIST_WORKER')" ,
327
- reason = "pytest-dev/pytest-xdist#843" ,
328
- )
331
+ @skip_under_xdist
329
332
def test_write_manifest_skips_non_utf8_filenames (self ):
330
333
"""
331
334
Files that cannot be encoded to UTF-8 (specifically, those that
@@ -464,6 +467,7 @@ def make_strings(cls, item):
464
467
return str (item )
465
468
466
469
@fail_on_latin1_encoded_filenames
470
+ @skip_under_xdist
467
471
def test_sdist_with_latin1_encoded_filename (self ):
468
472
# Test for #303.
469
473
dist = Distribution (self .make_strings (SETUP_ATTRS ))
You can’t perform that action at this time.
0 commit comments