summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-17 02:57:16 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-17 02:57:16 (GMT)
commit1a23c8cfcf5d6ff5007496beb953ec7f6e51b295 (patch)
tree4dbb8a40cd9302bc05e775b5e8f1df2ac5972a2d
parent4f3794639fbc0644c1b4ee803bb4880730d4e024 (diff)
downloadSCons-1a23c8cfcf5d6ff5007496beb953ec7f6e51b295.zip
SCons-1a23c8cfcf5d6ff5007496beb953ec7f6e51b295.tar.gz
SCons-1a23c8cfcf5d6ff5007496beb953ec7f6e51b295.tar.bz2
Eliminate custom use of old-style Proxy class in Node/FSTests.py.
-rw-r--r--src/engine/SCons/Node/FSTests.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index e013136..ab055e9 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -1657,14 +1657,7 @@ class FSTestCase(_tempdirTestCase):
def test_proxy(self):
"""Test a Node.FS object wrapped in a proxy instance"""
f1 = self.fs.File('fff')
- class Proxy:
- # Simplest possibly Proxy class that works for our test,
- # this is stripped down from SCons.Util.Proxy.
- def __init__(self, subject):
- self.__subject = subject
- def __getattr__(self, name):
- return getattr(self.__subject, name)
- p = Proxy(f1)
+ p = SCons.Util.Proxy(f1)
f2 = self.fs.Entry(p)
assert f1 is f2, (f1, f2)