Skip to content

Commit

Permalink
lint fixes with flake8==3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 29, 2017
1 parent 555056f commit ff59d7c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def test_profile_repr_lines():
assert repr(p.lines) == '{%r: {}}' % s
assert repr(s) == "Script(path='script-path', sourced_count=None)"

l = Line('line1')
s.lines[1] = l
assert repr(p.lines) == ('{%r: {1: %r}}' % (s, l))
line = Line('line1')
s.lines[1] = line
assert repr(p.lines) == ('{%r: {1: %r}}' % (s, line))


def test_profile_fname_or_fobj(caplog, devnull):
Expand Down Expand Up @@ -60,8 +60,9 @@ def test_parse_count_and_times():
def test_line():
from covimerage import Line

l = Line(' 1 0.000005 Foo')
assert repr(l) == "Line(line=' 1 0.000005 Foo', count=None, total_time=None, self_time=None)" # noqa
line = ' 1 0.000005 Foo'
assert repr(Line(line)) == 'Line(line=%r, count=None, total_time=None, self_time=None)' % ( # noqa:E501
line)


def test_profile_parse():
Expand Down

0 comments on commit ff59d7c

Please sign in to comment.