diff options
author | Mats Wichmann <mats@linux.com> | 2019-11-06 15:37:49 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-11-06 15:37:49 (GMT) |
commit | e2e147378027376f42043f798e47d93353237fec (patch) | |
tree | c2d21769f1aa89da47016b792c271e602b835e73 /test/YACC/YACCHFILESUFFIX.py | |
parent | c6ca3bdd2ad8e9a6ceea398934d84def9ba7c497 (diff) | |
download | SCons-e2e147378027376f42043f798e47d93353237fec.zip SCons-e2e147378027376f42043f798e47d93353237fec.tar.gz SCons-e2e147378027376f42043f798e47d93353237fec.tar.bz2 |
[3.9] change tests not to expect bare scriptname
Python 3.9 changes to give an absolute path in sys.argv[0].
Some tests expected to see just a simple path ('myyacc.py');
these now either do a test.must_contain instead of must_match,
or change to do "if 'mypass.py' in sys.argv[0]' instead of
the former "if sys.argv[0] == 'mypass.py'".
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/YACC/YACCHFILESUFFIX.py')
-rw-r--r-- | test/YACC/YACCHFILESUFFIX.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/YACC/YACCHFILESUFFIX.py b/test/YACC/YACCHFILESUFFIX.py index 6c34db1..da3416c 100644 --- a/test/YACC/YACCHFILESUFFIX.py +++ b/test/YACC/YACCHFILESUFFIX.py @@ -71,9 +71,9 @@ test.write('bbb.yacc', "bbb.yacc\n/*yacc*/\n") test.run(arguments = '.') test.must_match('aaa.c', "aaa.y\n") -test.must_match('aaa.hsuffix', "myyacc.py -d -o aaa.c aaa.y\n") +test.must_contain('aaa.hsuffix', "myyacc.py -d -o aaa.c aaa.y\n") test.must_match('bbb.c', "bbb.yacc\n") -test.must_match('bbb.hsuffix', "myyacc.py -d -o bbb.c bbb.yacc\n") +test.must_contain('bbb.hsuffix', "myyacc.py -d -o bbb.c bbb.yacc\n") test.up_to_date(arguments = '.') |