We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed30a99 commit 6c20f23Copy full SHA for 6c20f23
Lib/test/test_shutil.py
@@ -1570,7 +1570,7 @@ def test_copyfile_socket(self):
1570
self.assertRaisesRegex(shutil.SpecialFileError, 'is a socket',
1571
shutil.copyfile, __file__, sock_path)
1572
1573
- @unittest.skipIf(os.name == 'nt', 'requires /dev/null')
+ @unittest.skipUnless(os.path.exists('/dev/null'), 'requires /dev/null')
1574
def test_copyfile_character_device(self):
1575
self.assertRaisesRegex(shutil.SpecialFileError, 'is a character device',
1576
shutil.copyfile, '/dev/null', TESTFN)
0 commit comments