From: stevenknight Date: Sun, 9 Sep 2001 14:02:57 +0000 (+0000) Subject: Generalize the hard-coded line numbers in test/errors.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d8b3810e6c1df71c6a6b4312d2404af3a62412c;p=scons.git Generalize the hard-coded line numbers in test/errors.py. git-svn-id: http://scons.tigris.org/svn/scons/trunk@32 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/errors.py b/test/errors.py index d4b8d65d..04eac9e5 100644 --- a/test/errors.py +++ b/test/errors.py @@ -46,11 +46,11 @@ raise InternalError, 'error inside' """) test.run(chdir = '.', arguments='-f SConstruct3') expect = r"""Traceback \((most recent call|innermost) last\): - File "%s", line 163, in \? + File "%s", line \d+, in \? main\(\) - File "%s", line 153, in main + File "%s", line \d+, in main execfile\(file\) - File "SConstruct3", line 2, in \? + File "SConstruct3", line \d+, in \? raise InternalError, 'error inside' InternalError: error inside """ % (sconspath, sconspath)