Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 736fc41

Browse files
committed
tests: do not run some tests on Windows
1 parent 0b4d09e commit 736fc41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/backup.py

+6
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,9 @@ def test_drop_table(self):
14371437
# @unittest.skip("skip")
14381438
def test_basic_missing_file_permissions(self):
14391439
""""""
1440+
if os.name == 'nt':
1441+
return unittest.skip('Skipped because it is POSIX only test')
1442+
14401443
fname = self.id().split('.')[3]
14411444
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
14421445
node = self.make_simple_node(
@@ -1481,6 +1484,9 @@ def test_basic_missing_file_permissions(self):
14811484
# @unittest.skip("skip")
14821485
def test_basic_missing_dir_permissions(self):
14831486
""""""
1487+
if os.name == 'nt':
1488+
return unittest.skip('Skipped because it is POSIX only test')
1489+
14841490
fname = self.id().split('.')[3]
14851491
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
14861492
node = self.make_simple_node(

0 commit comments

Comments
 (0)