Skip to content

Commit 24da938

Browse files
committed
Fix additional flake8 errors
1 parent 26ee235 commit 24da938

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

testing/code/test_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ def __init__(self, *args):
342342
self.source = _pytest._code.Frame(frame).statement
343343

344344
x = A('x',
345-
'y',
345+
'y'
346+
,
346347
'z')
347348

348349
l = [i for i in x.source.lines if i.strip()]

testing/python/approx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def test_repr_string(self):
2929
if sys.version_info[:2] == (2, 6):
3030
tol1, tol2, infr = '???', '???', '???'
3131
assert repr(approx(1.0)) == '1.0 {pm} {tol1}'.format(pm=plus_minus, tol1=tol1)
32-
assert repr(approx([1.0, 2.0])) == '1.0 {pm} {tol1}, 2.0 {pm} {tol2}'.format(
32+
assert repr(approx([1.0, 2.0])) == 'approx([1.0 {pm} {tol1}, 2.0 {pm} {tol2}])'.format(
33+
pm=plus_minus, tol1=tol1, tol2=tol2)
34+
assert repr(approx((1.0, 2.0))) == 'approx((1.0 {pm} {tol1}, 2.0 {pm} {tol2}))'.format(
3335
pm=plus_minus, tol1=tol1, tol2=tol2)
3436
assert repr(approx(inf)) == 'inf'
3537
assert repr(approx(1.0, rel=nan)) == '1.0 {pm} ???'.format(pm=plus_minus)

0 commit comments

Comments
 (0)