Skip to content

Commit

Permalink
Removed unused import.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoumis committed Mar 4, 2024
1 parent 077d2f7 commit 91fe765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# Check the platform - this allows us to run unit tests in Linux
if sys.platform == "win32":
MUTEX_TIMEOUT_MS = 500
from ctypes import WinError, windll
from ctypes import windll

kernel32 = windll.kernel32
SYNCHRONIZE = 0x100000
Expand Down
4 changes: 2 additions & 2 deletions agent/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@ def command_execute_should_succeed(command):
assert "stderr" in js

@pytest.mark.xfail(sys.platform == "win32", reason="This is a linux-only test.")
def test_execute(self):
def test_execute_linux(self):
self.command_execute_should_succeed("date")

@pytest.mark.xfail(sys.platform == "linux", reason="This is a windows-only test.")
def test_execute(self):
def test_execute_windows(self):
self.command_execute_should_succeed("cmd /c date /t")

def test_execute_error(self):
Expand Down

0 comments on commit 91fe765

Please sign in to comment.