Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Oct 2, 2022
1 parent d23691e commit 5e57553
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/functional/s/syntax/syntax_error_invalid_encoding.py

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions tests/regrtest_data/invalid_encoding.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: lala -*-
5 changes: 5 additions & 0 deletions tests/test_self.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,11 @@ def test_ignore_path_recursive_current_dir(self) -> None:
code=0,
)

def test_syntax_error_invalid_encoding(self) -> None:
module = join(HERE, "regrtest_data", "invalid_encoding.py")
expected_output = "unknown encoding"
self._test_output([module, "-E"], expected_output=expected_output)


class TestCallbackOptions:
"""Test for all callback options we support."""
Expand Down

0 comments on commit 5e57553

Please sign in to comment.