File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -757,6 +757,8 @@ class command(FieldType):
757757
758758 Example:
759759
760+ .. code-block:: text
761+
760762 'c:\\ windows\\ malware.exe /info' -> windows_path('c:\\ windows\\ malware.exe) ['/info']
761763 '/usr/bin/env bash' -> posix_path('/usr/bin/env') ['bash']
762764
Original file line number Diff line number Diff line change @@ -1056,9 +1056,10 @@ def test_command_record() -> None:
10561056 assert record .commando .args == ["-h" ]
10571057
10581058 record = TestRecord (commando = "something.so -h -q -something" )
1059+ args = ["-h" , "-q" , "-something" ]
10591060 assert isinstance (record .commando .executable , _type )
10601061 assert record .commando .executable == "something.so"
1061- assert record .commando .args == ["-h" , "-q" , "-something" ]
1062+ assert record .commando .args == [" " . join ( args )] if os . name == "nt" else args
10621063
10631064
10641065def test_command_integration (tmp_path : pathlib .Path ) -> None :
You can’t perform that action at this time.
0 commit comments