Skip to content

Commit

Permalink
generate_expected_output.py: placate FutureWarning from python
Browse files Browse the repository at this point in the history
Regexes have long specified that a [ as the first character inside a
[...] is just a literal [, but apparently we need to escape it now, to
avoid a "nested set" FutureWarning.

Change-Id: I76a48c9aafb0684a1d6b0d5284fe9852c9ea0e43
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Samuel Gaist <[email protected]>
  • Loading branch information
ediosyncratic committed Jan 31, 2019
1 parent fcba9fa commit 7dd41b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auto/testlib/selftests/generate_expected_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __getPatterns(here, command,
# Add path to specific sources and to tst_*.cpp if missing (for in-source builds):
patterns += ((r'(^|[^/])\b(qtestcase.cpp)\b', r'\1qtbase/src/testlib/\2'),
# Add more special cases here, if they show up !
(r'([[" ])\.\./(counting/tst_counting.cpp)\b',
(r'([\[" ])\.\./(counting/tst_counting.cpp)\b',
r'\1' + os.path.sep.join(hereNames + (r'\2',))),
# The common pattern:
(r'(^|[^/])\b(tst_)?([a-z]+\d*)\.cpp\b',
Expand Down

0 comments on commit 7dd41b3

Please sign in to comment.