summaryrefslogtreecommitdiffstats
path: root/SCons/SConfTests.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-07-26 00:03:31 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-07-26 00:03:31 (GMT)
commit3fe222721955e6da39cb0d6a992a746ea1cd8bc2 (patch)
treeb18bf6c5139c2a062dc23be8bafd49ef9e5842ad /SCons/SConfTests.py
parent9d6d50a8172a77a37411d05c580cb9d0430fecc7 (diff)
downloadSCons-3fe222721955e6da39cb0d6a992a746ea1cd8bc2.zip
SCons-3fe222721955e6da39cb0d6a992a746ea1cd8bc2.tar.gz
SCons-3fe222721955e6da39cb0d6a992a746ea1cd8bc2.tar.bz2
Add .attributes to Dummy MyNode class used for tests
Diffstat (limited to 'SCons/SConfTests.py')
-rw-r--r--SCons/SConfTests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/SCons/SConfTests.py b/SCons/SConfTests.py
index 8ce6b3a..7faabdd 100644
--- a/SCons/SConfTests.py
+++ b/SCons/SConfTests.py
@@ -162,6 +162,9 @@ class SConfTestCase(unittest.TestCase):
def get_contents(self, target, source, env):
return 'MyBuilder-MyAction $SOURCE $TARGET'
+ class Attrs:
+ __slots__ = ('shared', '__dict__')
+
class MyBuilder(SCons.Builder.BuilderBase):
def __init__(self):
self.prefix = ''
@@ -178,6 +181,7 @@ class SConfTestCase(unittest.TestCase):
self.side_effects = []
self.builder = None
self.prerequisites = None
+ self.attributes = Attrs()
def disambiguate(self):
return self
def has_builder(self):