Skip to content

Commit ff59d7c

Browse files
committed
lint fixes with flake8==3.5.0
1 parent 555056f commit ff59d7c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def test_profile_repr_lines():
2222
assert repr(p.lines) == '{%r: {}}' % s
2323
assert repr(s) == "Script(path='script-path', sourced_count=None)"
2424

25-
l = Line('line1')
26-
s.lines[1] = l
27-
assert repr(p.lines) == ('{%r: {1: %r}}' % (s, l))
25+
line = Line('line1')
26+
s.lines[1] = line
27+
assert repr(p.lines) == ('{%r: {1: %r}}' % (s, line))
2828

2929

3030
def test_profile_fname_or_fobj(caplog, devnull):
@@ -60,8 +60,9 @@ def test_parse_count_and_times():
6060
def test_line():
6161
from covimerage import Line
6262

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

6667

6768
def test_profile_parse():

0 commit comments

Comments
 (0)