Skip to content

Commit ad541d0

Browse files
committed
skip for windows
1 parent f568a02 commit ad541d0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/functional/s3/test_cp_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# language governing permissions and limitations under the License.
1414
import os
1515

16-
from awscli.testutils import BaseAWSCommandParamsTest
16+
from awscli.testutils import BaseAWSCommandParamsTest, skip_if_windows
1717
from awscli.testutils import capture_input
1818
from awscli.testutils import mock
1919
from awscli.compat import BytesIO
@@ -1339,6 +1339,7 @@ def test_s3_express_skip_raises_exception(self):
13391339
_, stderr, _ = self.run_cmd(cmd, expected_rc=255)
13401340
assert "`skip` is not a valid value" in stderr
13411341

1342+
@skip_if_windows("Can't rename to same file")
13421343
def test_s3_express_warn_emits_warning(self):
13431344
cmd = (
13441345
f"{self.prefix} s3://bucket--usw2-az1--x-s3 {self.files.rootdir} "

tests/functional/s3/test_sync_command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# language governing permissions and limitations under the License.
1313
import os
1414

15-
from awscli.testutils import cd, mock, skip_if_case_sensitive
15+
from awscli.testutils import cd, mock, skip_if_case_sensitive, skip_if_windows
1616
from awscli.compat import BytesIO
1717
from tests.functional.s3 import BaseS3TransferCommandTest
1818

@@ -476,6 +476,7 @@ def test_warn_with_existing_file(self):
476476
_, stderr, _ = self.run_cmd(cmd, expected_rc=0)
477477
assert f"warning: Downloading bucket/{self.upper_key}" in stderr
478478

479+
@skip_if_windows("Can't rename to same file")
479480
def test_warn_with_case_conflicts_in_s3(self):
480481
cmd = (
481482
f"{self.prefix} s3://bucket {self.files.rootdir} "
@@ -524,6 +525,7 @@ def test_ignore_with_existing_file(self):
524525
]
525526
self.run_cmd(cmd, expected_rc=0)
526527

528+
@skip_if_windows("Can't rename to same file")
527529
def test_ignore_with_case_conflicts_in_s3(self):
528530
cmd = (
529531
f"{self.prefix} s3://bucket {self.files.rootdir} "

0 commit comments

Comments
 (0)