We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug pytest reports DeprecationWarning: invalid escape sequence \W in stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py
DeprecationWarning: invalid escape sequence \W
To Reproduce Steps to reproduce the behavior:
pytest
Expected behavior Should either use double backslash for Windows paths or Python raw strings.
Screenshots
/home/runner/work/stix-shifter/stix-shifter/stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:84: DeprecationWarning: invalid escape sequence \W data = {'xdr_data': {'action_process_image_command_line': 'C:\Windows\system32\lsass.exe', stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:85 /home/runner/work/stix-shifter/stix-shifter/stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:85: DeprecationWarning: invalid escape sequence \W 'actor_process_command_line': 'C:\Windows\system32\lsass.exe', stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:86 /home/runner/work/stix-shifter/stix-shifter/stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:86: DeprecationWarning: invalid escape sequence \W 'causality_actor_process_command_line': 'C:\Windows\system32\lsass.exe', stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:87 /home/runner/work/stix-shifter/stix-shifter/stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:87: DeprecationWarning: invalid escape sequence \W 'os_actor_process_command_line': 'C:\Windows\system32\lsass.exe', stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:120 /home/runner/work/stix-shifter/stix-shifter/stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.py:120: DeprecationWarning: invalid escape sequence \W assert process_obj['command_line'] == 'C:\Windows\system32\lsass.exe'
The text was updated successfully, but these errors were encountered:
Updated changes for the issue opencybersecurityalliance#1270
3d47804
Updated the test cases with double backslash for Windows paths.
Updated changes for the issue #1270 (#1272)
0e35117
Fixed with #1272.
Sorry, something went wrong.
f3af8eb
No branches or pull requests
Describe the bug
pytest reports
DeprecationWarning: invalid escape sequence \W
in stix_shifter_modules/paloalto/tests/stix_translation/test_paloalto_json_to_stix.pyTo Reproduce
Steps to reproduce the behavior:
pytest
Expected behavior
Should either use double backslash for Windows paths or Python raw strings.
Screenshots
The text was updated successfully, but these errors were encountered: