diff options
author | Mats Wichmann <mats@linux.com> | 2019-08-08 15:51:04 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2019-09-13 14:10:46 (GMT) |
commit | fa1affd9d48c795f911f281b88291a8b8248627c (patch) | |
tree | 22b15f5b58736c1bdcaec554ac309466b2c88f59 /test/option-v.py | |
parent | eacd78c2b40a157977d22be5fa195b73e16befdb (diff) | |
download | SCons-fa1affd9d48c795f911f281b88291a8b8248627c.zip SCons-fa1affd9d48c795f911f281b88291a8b8248627c.tar.gz SCons-fa1affd9d48c795f911f281b88291a8b8248627c.tar.bz2 |
test: Fix SyntaxWarnings on escapes in Python strings
This is the remaining batch of SyntaxWarning cleanups in the test/
directory, as flagged by Python 3.8 (now tested with 3.8.0b4). Most of
these are escapes in strings that are not recognized as Python-language
escapes up front, due to the embedded nature of testing - tests write a
string to a file which is actually Python (code or sconscript) which is
later to be executed.
Also changed the timestamp-fallback test to eliminate an imp module
DeprecationWarning: since in all supported Python versions haslib
is stdlib, drop that skip check; the md5 skip check can be a simple
import now.
My test runs with 3.8 show no SyntaxWarnings after this.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/option-v.py')
-rw-r--r-- | test/option-v.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/option-v.py b/test/option-v.py index 4a67df0..ed8c4e5 100644 --- a/test/option-v.py +++ b/test/option-v.py @@ -35,7 +35,7 @@ test.write('SConstruct', "") # Standard copyright marker is mangled so it doesn't get replaced # by the packaging build. copyright_line = """\ -(_{2}COPYRIGHT__|Copyright \\(c\\) 2001[-\d, ]+ The SCons Foundation) +(_{2}COPYRIGHT__|Copyright \\(c\\) 2001[-\\d, ]+ The SCons Foundation) """ # Windows may or may not print a line for the script version @@ -64,7 +64,7 @@ if not test.match_re(stdout, expect1) and not test.match_re(stdout, expect2): test.fail_test() test.pass_test() - + # Local Variables: # tab-width:4 |