We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4da99c commit 13f2427Copy full SHA for 13f2427
tests/context.py
@@ -133,6 +133,16 @@
133
raise ModuleNotFoundError("[CWE-440] profiling Failed to import.") from err
134
135
136
+try:
137
+ if 'tests.exceptions' not in sys.modules:
138
+ import tests.exceptions
139
+ else: # pragma: no branch
140
+ tests.exceptions = sys.modules["""tests.exceptions"""]
141
+ from tests.exceptions import CommandExecutionError
142
+except ImportError as err: # pragma: no branch
143
+ raise ModuleNotFoundError("[CWE-440] Test Exceptions Failed to import.") from err
144
+
145
146
__BLANK = str("""""")
147
"""
148
A literally named variable to improve readability of code when using a blank string.
0 commit comments