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

Commit1c64337

Browse files
author
Dmitry Kovalenko
committed
TestLocalOperations tests skip Windows
1 parent45cfbf7 commit1c64337

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎tests/test_local.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
importpytest
2+
importplatform
23

34
fromtestgresimportExecUtilException
45
fromtestgresimportLocalOperations
@@ -10,10 +11,16 @@ class TestLocalOperations:
1011
defsetup(self):
1112
self.operations=LocalOperations()
1213

14+
defskip_if_windows():
15+
ifplatform.system().lower()=="windows":
16+
pytest.skip("This test does not support Windows.")
17+
1318
deftest_exec_command_success(self):
1419
"""
1520
Test exec_command for successful command execution.
1621
"""
22+
__class__.skip_if_windows()
23+
1724
cmd="python3 --version"
1825
response=self.operations.exec_command(cmd,wait_exit=True,shell=True)
1926

@@ -23,6 +30,8 @@ def test_exec_command_failure(self):
2330
"""
2431
Test exec_command for command execution failure.
2532
"""
33+
__class__.skip_if_windows()
34+
2635
cmd="nonexistent_command"
2736
whileTrue:
2837
try:
@@ -37,6 +46,8 @@ def test_exec_command_failure__expect_error(self):
3746
"""
3847
Test exec_command for command execution failure.
3948
"""
49+
__class__.skip_if_windows()
50+
4051
cmd="nonexistent_command"
4152

4253
exit_status,result,error=self.operations.exec_command(cmd,verbose=True,wait_exit=True,shell=True,expect_error=True)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp