diff options
Diffstat (limited to 'tests/test_self.py')
-rw-r--r-- | tests/test_self.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_self.py b/tests/test_self.py index 9cec1b1c9..076f2a22f 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -1052,19 +1052,21 @@ a.py:1:4: E0001: Parsing failed: 'invalid syntax (<unknown>, line 1)' (syntax-er [ ( "text", - "tests/regrtest_data/unused_variable.py:4:4: W0612: Unused variable 'variable' (unused-variable)", + "{path}:4:4: W0612: Unused variable 'variable' (unused-variable)", ), ( "parseable", - "tests/regrtest_data/unused_variable.py:4: [W0612(unused-variable), test] Unused variable 'variable'", + "{path}:4: [W0612(unused-variable), test] Unused variable 'variable'", ), ( "msvs", - "tests/regrtest_data/unused_variable.py(4): [W0612(unused-variable)test] Unused variable 'variable'", + "{path}(4): [W0612(unused-variable)test] Unused variable 'variable'", ), ( "colorized", - "tests/regrtest_data/unused_variable.py:4:4: W0612: \x1B[35mUnused variable 'variable'\x1B[0m (\x1B[35munused-variable\x1B[0m)", + ( + "{path}:4:4: W0612: \x1B[35mUnused variable 'variable'\x1B[0m (\x1B[35munused-variable\x1B[0m)" + ), ), ("json", '"message": "Unused variable \'variable\'",'), ], @@ -1077,7 +1079,7 @@ a.py:1:4: E0001: Parsing failed: 'invalid syntax (<unknown>, line 1)' (syntax-er self._test_output_file( [path, f"--output={output_file}", f"--output-format={output_format}"], output_file, - expected_output, + expected_output.format(path="tests/regrtest_data/unused_variable.py"), ) def test_output_file_can_be_combined_with_custom_reporter( |