Skip to content

Commit

Permalink
tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jul 17, 2023
1 parent c7dc2e8 commit 4bb1a96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/file_handler/test_patch_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_memory_error_n(self, config: Config) -> None:
assert len(test_files) == 1
targets = [x for x in test_files[0].yield_analysis_target()]
assert len(targets) == 7
# mocked_logger.assert_called_with("Wrong diff <class 'MemoryError'> ")
mocked_logger.assert_not_called()

def test_overflow_error_n(self, config: Config) -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
Expand All @@ -208,5 +208,4 @@ def test_overflow_error_n(self, config: Config) -> None:
assert len(test_files) == 1
targets = [x for x in test_files[0].yield_analysis_target()]
assert len(targets) == 4
# mocked_logger.assert_called_with(
# "Wrong diff <class 'OverflowError'> cannot fit 'int' into an index-sized integer")
mocked_logger.assert_not_called()

0 comments on commit 4bb1a96

Please sign in to comment.