summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-21 21:52:17 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-21 21:52:17 -0400
commit4d1cca7c6500d732bef2b8a95b2c49e96b13e078 (patch)
treec389529f483178acf18f651217ec4156ccee69bb
parente1048ddc53130fc473040f7942cc146c8816db8a (diff)
downloadsix-4d1cca7c6500d732bef2b8a95b2c49e96b13e078.tar.gz
Remove decorator syntax, restoring Python 2.4 compatibility in tests.
-rw-r--r--test_six.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test_six.py b/test_six.py
index 9954a71..8305377 100644
--- a/test_six.py
+++ b/test_six.py
@@ -501,23 +501,23 @@ def test_with_metaclass():
def test_patch_with_metaclass():
class Meta(type):
pass
- @six.patch_with_metaclass(Meta)
class X:
pass
+ X = six.patch_with_metaclass(Meta)(X)
assert type(X) is Meta
assert issubclass(X, object)
class Base(object):
pass
- @six.patch_with_metaclass(Meta)
class X(Base):
pass
+ X = six.patch_with_metaclass(Meta)(X)
assert type(X) is Meta
assert issubclass(X, Base)
class Base2(object):
pass
- @six.patch_with_metaclass(Meta)
class X(Base, Base2):
pass
+ X = six.patch_with_metaclass(Meta)(X)
assert type(X) is Meta
assert issubclass(X, Base)
assert issubclass(X, Base2)
@@ -527,12 +527,12 @@ def test_patch_with_metaclass_extra_meta():
m1 = "m1"
class Meta2(Meta1):
m2 = "m2"
- @six.patch_with_metaclass(Meta1)
class Base:
b = "b"
- @six.patch_with_metaclass(Meta2)
+ Base = six.patch_with_metaclass(Meta1)(Base)
class X(Base):
x = "x"
+ X = six.patch_with_metaclass(Meta2)(X)
assert type(X) is Meta2
assert issubclass(X, Base)
assert type(Base) is Meta1