Kaydet (Commit) d412b495 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fix test_os (issue #18702).

üst 32e23e73
...@@ -316,7 +316,7 @@ class StatAttributeTests(unittest.TestCase): ...@@ -316,7 +316,7 @@ class StatAttributeTests(unittest.TestCase):
return buf.value return buf.value
@unittest.skipUnless(sys.platform == "win32", "Win32 specific tests") @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
@unittest.skipUnless(get_file_system(support.TESTFN) == "NTFS", @unittest.skipUnless(get_file_system(test_support.TESTFN) == "NTFS",
"requires NTFS") "requires NTFS")
def test_1565150(self): def test_1565150(self):
t1 = 1159195039.25 t1 = 1159195039.25
...@@ -324,7 +324,7 @@ class StatAttributeTests(unittest.TestCase): ...@@ -324,7 +324,7 @@ class StatAttributeTests(unittest.TestCase):
self.assertEqual(os.stat(self.fname).st_mtime, t1) self.assertEqual(os.stat(self.fname).st_mtime, t1)
@unittest.skipUnless(sys.platform == "win32", "Win32 specific tests") @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
@unittest.skipUnless(get_file_system(support.TESTFN) == "NTFS", @unittest.skipUnless(get_file_system(test_support.TESTFN) == "NTFS",
"requires NTFS") "requires NTFS")
def test_large_time(self): def test_large_time(self):
t1 = 5000000000 # some day in 2128 t1 = 5000000000 # some day in 2128
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment