diff options
| author | Steven Knight <knight@baldmt.com> | 2010-05-12 05:21:33 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2010-05-12 05:21:33 (GMT) |
| commit | 53fc08f1c8d9d4d0174247cb34b770342fd25068 (patch) | |
| tree | db3ece8a678daf4f6d004096a05ddaaab94aa3a7 /src/engine/SCons/PathListTests.py | |
| parent | c94aad42405270dcfe9225d49fbf2aa2cae0b50d (diff) | |
| download | SCons-53fc08f1c8d9d4d0174247cb34b770342fd25068.zip SCons-53fc08f1c8d9d4d0174247cb34b770342fd25068.tar.gz SCons-53fc08f1c8d9d4d0174247cb34b770342fd25068.tar.bz2 | |
Convert old-style utility classes in unit test files (*Tests.py)
to new-style classes.
Diffstat (limited to 'src/engine/SCons/PathListTests.py')
| -rw-r--r-- | src/engine/SCons/PathListTests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/PathListTests.py b/src/engine/SCons/PathListTests.py index 31a9ec6..212c761 100644 --- a/src/engine/SCons/PathListTests.py +++ b/src/engine/SCons/PathListTests.py @@ -33,7 +33,7 @@ class subst_pathTestCase(unittest.TestCase): def setUp(self): - class FakeEnvironment: + class FakeEnvironment(object): def __init__(self, **kw): self.kw = kw def subst(self, s, target=None, source=None, conv=lambda x: x): @@ -55,7 +55,7 @@ class subst_pathTestCase(unittest.TestCase): import SCons.Node - class A: + class A(object): pass n = SCons.Node.Node() @@ -70,7 +70,7 @@ class subst_pathTestCase(unittest.TestCase): """Test the subst_path() method on a non-Node object """ - class A: + class A(object): def __str__(self): return '<object A>' @@ -86,7 +86,7 @@ class subst_pathTestCase(unittest.TestCase): """Test the subst_path() method on an object with a get() method """ - class B: + class B(object): def get(self): return 'b' |
