Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3451c5

Browse files
committed
tests: module "external" fixes for Windows
1 parentf154be4 commitc3451c5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎tests/external.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,9 @@ def test_external_dir_is_symlink(self):
13801380
symlink pointing to external dir should be followed,
13811381
but restored as directory
13821382
"""
1383+
ifos.name=='nt':
1384+
returnunittest.skip('Skipped for Windows')
1385+
13831386
fname=self.id().split('.')[3]
13841387
backup_dir=os.path.join(self.tmp_path,module_name,fname,'backup')
13851388
core_dir=os.path.join(self.tmp_path,module_name,fname)
@@ -1462,6 +1465,9 @@ def test_external_dir_contain_symlink_on_dir(self):
14621465
symlink pointing to external dir should be followed,
14631466
but restored as directory
14641467
"""
1468+
ifos.name=='nt':
1469+
returnunittest.skip('Skipped for Windows')
1470+
14651471
fname=self.id().split('.')[3]
14661472
backup_dir=os.path.join(self.tmp_path,module_name,fname,'backup')
14671473
core_dir=os.path.join(self.tmp_path,module_name,fname)
@@ -1544,6 +1550,9 @@ def test_external_dir_contain_symlink_on_file(self):
15441550
symlink pointing to external dir should be followed,
15451551
but restored as directory
15461552
"""
1553+
ifos.name=='nt':
1554+
returnunittest.skip('Skipped for Windows')
1555+
15471556
fname=self.id().split('.')[3]
15481557
backup_dir=os.path.join(self.tmp_path,module_name,fname,'backup')
15491558
core_dir=os.path.join(self.tmp_path,module_name,fname)
@@ -1896,7 +1905,7 @@ def test_merge_external_dir_is_missing(self):
18961905
exceptProbackupExceptionase:
18971906
self.assertIn(
18981907
'ERROR: External directory is not found:',
1899-
external_dir,
1908+
e.message,
19001909
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
19011910
repr(e.message),self.cmd))
19021911

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp