summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-11-12 16:37:19 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-11-12 16:47:05 (GMT)
commite5940adedbb88877eb0a52f9dd9fe26e032fc9ba (patch)
tree9cca86b42b37401b023155bee83e7e10392bf42a /src/engine/SCons
parent0978c790762c47834bd816b9f4b56bf7978f6b19 (diff)
downloadSCons-e5940adedbb88877eb0a52f9dd9fe26e032fc9ba.zip
SCons-e5940adedbb88877eb0a52f9dd9fe26e032fc9ba.tar.gz
SCons-e5940adedbb88877eb0a52f9dd9fe26e032fc9ba.tar.bz2
Change test for str(node1) is str(node2) to use ==. Expecting that the strings would have the same id() is not reasonable. Expecting their values are equal is.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/Node/FSTests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index b39d1e3..23ec48e 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -1134,7 +1134,10 @@ class FSTestCase(_tempdirTestCase):
e1 = fs.Entry(p)
e2 = fs.Entry(path)
assert e1 is e2, (e1, e2)
- assert str(e1) is str(e2), (str(e1), str(e2))
+ a=str(e1)
+ b=str(e2)
+ assert a == b, ("Strings should match for same file/node\n%s\n%s"%(a,b))
+
# Test for a bug in 0.04 that did not like looking up
# dirs with a trailing slash on Windows.