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 @@ -747,6 +747,8 @@ class command(FieldType):
747747
748748 Example:
749749
750+ .. code-block:: text
751+
750752 'c:\\ windows\\ malware.exe /info' -> windows_path('c:\\ windows\\ malware.exe) ['/info']
751753 '/usr/bin/env bash' -> posix_path('/usr/bin/env') ['bash']
752754
Original file line number Diff line number Diff line change @@ -1053,9 +1053,10 @@ def test_command_record() -> None:
10531053 assert record .commando .args == ["-h" ]
10541054
10551055 record = TestRecord (commando = "something.so -h -q -something" )
1056+ args = ["-h" , "-q" , "-something" ]
10561057 assert isinstance (record .commando .executable , _type )
10571058 assert record .commando .executable == "something.so"
1058- assert record .commando .args == ["-h" , "-q" , "-something" ]
1059+ assert record .commando .args == [" " . join ( args )] if os . name == "nt" else args
10591060
10601061
10611062def test_command_integration (tmp_path : pathlib .Path ) -> None :
You can’t perform that action at this time.
0 commit comments