Skip to content

Commit

Permalink
avoid shlex.join which was added in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat committed Jun 7, 2022
1 parent 1039437 commit 06a1881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_0_watchmedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def test_shell_command_wait_for_completion(tmpdir, capfd):
import sys
import time
script = make_dummy_script(tmpdir, n=1)
trick = ShellCommandTrick(shlex.join([sys.executable, script]), wait_for_process=True)
command = " ".join(map(shlex.quote, [sys.executable, script]))
trick = ShellCommandTrick(command, wait_for_process=True)
assert not trick.is_process_running()
start_time = time.monotonic()
trick.on_any_event(FileModifiedEvent("foo/bar.baz"))
Expand Down

0 comments on commit 06a1881

Please sign in to comment.