diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-11-20 18:59:15 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-11-20 18:59:15 -0200 |
commit | 1eb5a690d4c416962b6ccf46618367f68e54ea89 (patch) | |
tree | 6d9b8c722c6d78747f5c617fcfd1145c61065558 /_pytest/_code/code.py | |
parent | cbf261c74ef1713f88ac56f2c382f096b252dedb (diff) | |
download | pytest-1eb5a690d4c416962b6ccf46618367f68e54ea89.tar.gz |
Fix flake8 E305 and E306 errors
These errors started to appear with flake8-3.1.1, while they don't appear with
version 3.1.0 (weird).
Diffstat (limited to '_pytest/_code/code.py')
-rw-r--r-- | _pytest/_code/code.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py index 5b4237939..616d5c431 100644 --- a/_pytest/_code/code.py +++ b/_pytest/_code/code.py @@ -343,6 +343,7 @@ class Traceback(list): l.append(entry.frame.f_locals) return None + co_equal = compile('__recursioncache_locals_1 == __recursioncache_locals_2', '?', 'eval') @@ -846,6 +847,7 @@ def getrawcode(obj, trycall=True): return x return obj + if sys.version_info[:2] >= (3, 5): # RecursionError introduced in 3.5 def is_recursion_error(excinfo): return excinfo.errisinstance(RecursionError) # noqa |