summaryrefslogtreecommitdiff
path: root/testing/code
diff options
context:
space:
mode:
authorAndras Tim <andras.tim@gmail.com>2017-07-17 01:25:08 +0200
committerAndras Tim <andras.tim@gmail.com>2017-07-17 01:44:22 +0200
commit2e8caefcab33942a754ee7ddf7697fe487a4367a (patch)
treea18b77c24913758cffbf15ecfa461ccba3900ded /testing/code
parent3fabc4d21918a0927a1717e2616862400bde5440 (diff)
downloadpytest-2e8caefcab33942a754ee7ddf7697fe487a4367a.tar.gz
Fixed E225 flake8 errors
missing whitespace around operator
Diffstat (limited to 'testing/code')
-rw-r--r--testing/code/test_source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/code/test_source.py b/testing/code/test_source.py
index 6a9b458ec..dc48b29c3 100644
--- a/testing/code/test_source.py
+++ b/testing/code/test_source.py
@@ -78,7 +78,7 @@ def test_source_putaround_simple():
x = 42
else:
x = 23""")
- assert str(source)=="""\
+ assert str(source) == """\
try:
raise ValueError
except ValueError:
@@ -291,7 +291,7 @@ class TestSourceParsingAndCompiling(object):
def check(comp, name):
co = comp(self.source, name)
if not name:
- expected = "codegen %s:%d>" %(mypath, mylineno+2+2)
+ expected = "codegen %s:%d>" % (mypath, mylineno+2+2)
else:
expected = "codegen %r %s:%d>" % (name, mypath, mylineno+2+2)
fn = co.co_filename