Skip to content

Commit 6c20f23

Browse files
Fix failing test
1 parent ed30a99 commit 6c20f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_shutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ def test_copyfile_socket(self):
15701570
self.assertRaisesRegex(shutil.SpecialFileError, 'is a socket',
15711571
shutil.copyfile, __file__, sock_path)
15721572

1573-
@unittest.skipIf(os.name == 'nt', 'requires /dev/null')
1573+
@unittest.skipUnless(os.path.exists('/dev/null'), 'requires /dev/null')
15741574
def test_copyfile_character_device(self):
15751575
self.assertRaisesRegex(shutil.SpecialFileError, 'is a character device',
15761576
shutil.copyfile, '/dev/null', TESTFN)

0 commit comments

Comments
 (0)