Skip to content

Commit c6fc08e

Browse files
committed
Tweak test which is unsuitable for Windows on Python >= 3.13.
1 parent ce18643 commit c6fc08e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_scripts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ def test_dry_run(self):
341341
def test_script_run(self):
342342
if sys.version_info[:2] < (3, 13):
343343
target = 'cgi:print_directory'
344-
else:
344+
elif os.name != 'nt':
345345
target = 'test.support.interpreters:list_all'
346+
else:
347+
raise unittest.SkipTest('test not available on Windows for Python >= 3.13')
346348
files = self.maker.make('test = %s' % target)
347349
self.assertEqual(len(files), 2)
348350
p = subprocess.Popen([sys.executable, files[0]], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

0 commit comments

Comments
 (0)