summaryrefslogtreecommitdiff
path: root/test/ext/test_extendedattr.py
diff options
context:
space:
mode:
authorKhairi Hafsham <jumanjisama@gmail.com>2017-02-02 13:02:21 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-02-07 11:21:56 -0500
commit772374735da27df1ddb907f4a0f5085b46dbe82b (patch)
tree41f88c835a74d4665c97853ae8676a5181d61db3 /test/ext/test_extendedattr.py
parentd71f4b47186972c5248c94ee2d04364da95a0965 (diff)
downloadsqlalchemy-772374735da27df1ddb907f4a0f5085b46dbe82b.tar.gz
Make all tests to be PEP8 compliant
tested using pycodestyle version 2.2.0 Fixes: #3885 Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343
Diffstat (limited to 'test/ext/test_extendedattr.py')
-rw-r--r--test/ext/test_extendedattr.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ext/test_extendedattr.py b/test/ext/test_extendedattr.py
index c4147ed85..cf0613a52 100644
--- a/test/ext/test_extendedattr.py
+++ b/test/ext/test_extendedattr.py
@@ -526,7 +526,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
pass
register_class(A)
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class B(object):
__sa_instrumentation_manager__ = staticmethod(mgr_factory)
@@ -541,7 +541,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
pass
register_class(A)
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class B(A):
__sa_instrumentation_manager__ = staticmethod(mgr_factory)
@@ -556,7 +556,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
pass
# delay registration
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class B(A):
__sa_instrumentation_manager__ = staticmethod(mgr_factory)
@@ -567,7 +567,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
register_class, A)
def test_diamond_b1(self):
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class A(object):
pass
@@ -586,7 +586,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
register_class, B1)
def test_diamond_b2(self):
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class A(object):
pass
@@ -606,7 +606,7 @@ class InstrumentationCollisionTest(_ExtBase, fixtures.ORMTest):
register_class, B1)
def test_diamond_c_b(self):
- mgr_factory = lambda cls: instrumentation.ClassManager(cls)
+ def mgr_factory(cls): return instrumentation.ClassManager(cls)
class A(object):
pass