Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Aug 8, 2022
1 parent e795dd0 commit a572fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 2 additions & 4 deletions pylama/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ def push(self, filtrate: bool = True, **params):
err = Error(filename=self.filename, **params)
number = err.number

if bool(len(self.lines)):

if SKIP_PATTERN(self.lines[err.lnum - 1 ]):
return None
if len(self.lines) >= err.lnum and SKIP_PATTERN(self.lines[err.lnum - 1]):
return None

if filtrate:

Expand Down
6 changes: 0 additions & 6 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ def test_run_with_code(run, parse_options):
assert errors


def test_run_empty_code(run, parse_options):
options = parse_options(linters="pyflakes")
errors = run("filename.py", code="", options=options)
assert errors


def test_async(parse_options):
from pylama.check_async import check_async

Expand Down

0 comments on commit a572fe7

Please sign in to comment.