[Tile-serving] [openstreetmap/osm2pgsql] Fix invalid escape sequence warnings (PR #2042)

Tom Hughes notifications at github.com
Wed Aug 16 10:27:22 UTC 2023


These warnings are normally hidden but when a bdd test fails you see them in the output:

```
steps/steps_db.py:28: SyntaxWarning: invalid escape sequence '\d'
  @then("table (?P<table>.+) has (?P<row_num>\d+) rows?(?P<has_where> with condition)?")
steps/steps_db.py:43: SyntaxWarning: invalid escape sequence '\d'
  @then("the sum of '(?P<formula>.+)' in table (?P<table>.+) is (?P<result>\d+)(?P<has_where> with condition)?")
steps/steps_execute.py:151: SyntaxWarning: invalid escape sequence '\w'
  @when("running osm2pgsql (?P<output>\w+)(?: with parameters)?")
steps/steps_execute.py:163: SyntaxWarning: invalid escape sequence '\w'
  @then("running osm2pgsql (?P<output>\w+)(?: with parameters)? fails")
steps/steps_execute.py:182: SyntaxWarning: invalid escape sequence '\d'
  @then("running osm2pgsql-replication fails(?: with returncode (?P<expected>\d+))?")
steps/steps_execute.py:193: SyntaxWarning: invalid escape sequence '\w'
  @then("the (?P<kind>\w+) output contains")
```
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/2042

-- Commit Summary --

  * Fix invalid escape sequence warnings

-- File Changes --

    M tests/bdd/steps/steps_db.py (4)
    M tests/bdd/steps/steps_execute.py (8)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/2042.patch
https://github.com/openstreetmap/osm2pgsql/pull/2042.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2042
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/2042 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230816/06cfd08a/attachment-0001.htm>


More information about the Tile-serving mailing list