diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-06-10 18:44:44 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2019-06-10 18:44:44 (GMT) |
commit | 3d2e5840dc86bbb534b779e99a3ccd1a5173cd87 (patch) | |
tree | 9b4e130b5c049d631946b9b1caf67566a38270c1 /test/Subst | |
parent | 992fbede040f5d169eec5b92e852232aec6e17a7 (diff) | |
download | SCons-3d2e5840dc86bbb534b779e99a3ccd1a5173cd87.zip SCons-3d2e5840dc86bbb534b779e99a3ccd1a5173cd87.tar.gz SCons-3d2e5840dc86bbb534b779e99a3ccd1a5173cd87.tar.bz2 |
Fix escaping to quiet py38 warnings about bad escapes
Diffstat (limited to 'test/Subst')
-rw-r--r-- | test/Subst/Literal.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Subst/Literal.py b/test/Subst/Literal.py index dec243d..5d6b15e 100644 --- a/test/Subst/Literal.py +++ b/test/Subst/Literal.py @@ -33,14 +33,13 @@ import TestSCons test = TestSCons.TestSCons() test.write('SConstruct', """\ -env = Environment(PRE='pre=', MID=Literal('\$$ORIGIN'), SUF='') +env = Environment(PRE='pre=', MID=Literal('\\\\$$ORIGIN'), SUF='') print(env.subst('${_concat(PRE, MID, SUF, __env__)}')) """) test.run() -expect = """\ -pre=\$ORIGIN +expect = r"""pre=\$ORIGIN """ test.run(arguments='-Q -q', stdout=expect) |