aports/main/boost1.84/python-syntax-warning.patch
2024-07-04 06:57:32 +00:00

15 lines
646 B
Diff

SyntaxWarning messing up stderr of tests
Ref https://github.com/boostorg/build/commit/9e3cf110dee968c08cfe15196ab0910a7fad072d
--- a/tools/build/test/toolset-mock/src/MockProgram.py
+++ b/tools/build/test/toolset-mock/src/MockProgram.py
@@ -190,7 +190,7 @@ def allow_properties(*args):
# Use this in the stdout argument of command to print the command
# for running another script.
def script(name):
- return os.path.join(os.path.dirname(__file__), "bin", re.sub('\.py$', '', name))
+ return os.path.join(os.path.dirname(__file__), "bin", re.sub('\\.py$', '', name))
def match(command_line):
for (p, stdout) in known_patterns: