summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig/MD5Tests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-11-20 17:58:56 (GMT)
committerSteven Knight <knight@baldmt.com>2001-11-20 17:58:56 (GMT)
commitfa11b8d2fa2e3adc18588992ff869b1f1457c03f (patch)
tree569699b30c9de0106b55352d89b2d03ef8cfe086 /src/engine/SCons/Sig/MD5Tests.py
parent76166c77f852377b6139a9414cc355fe2661a0e7 (diff)
downloadSCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.zip
SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.gz
SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.bz2
Crain: Finish LIBS, LIBPATH, CPPPATH
Diffstat (limited to 'src/engine/SCons/Sig/MD5Tests.py')
-rw-r--r--src/engine/SCons/Sig/MD5Tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Sig/MD5Tests.py b/src/engine/SCons/Sig/MD5Tests.py
index 2d42fc0..e74d339 100644
--- a/src/engine/SCons/Sig/MD5Tests.py
+++ b/src/engine/SCons/Sig/MD5Tests.py
@@ -25,6 +25,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import sys
import unittest
+import string
from SCons.Sig.MD5 import current, collect, signature, to_string, from_string
@@ -83,7 +84,8 @@ class MD5TestCase(unittest.TestCase):
try:
signature('string')
except AttributeError, e:
- assert str(e) == "unable to fetch contents of 'string': 'string' object has no attribute 'get_contents'", e
+ # the error string should begin with "unable to fetch contents of 'string': "
+ assert string.find(str(e), "unable to fetch contents of 'string':") == 0
else:
raise AttributeError, "unexpected get_contents() attribute"