Skip to content

Commit

Permalink
Fix regex flags accidentally passed as count (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain authored Jul 1, 2024
1 parent fe1f950 commit fa17c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ class Cfg(BaseSettings):
Cfg(_cli_parse_args=True)

assert (
re.sub(r'0x\w+', '0xffffffff', capsys.readouterr().out, re.MULTILINE)
re.sub(r'0x\w+', '0xffffffff', capsys.readouterr().out, flags=re.MULTILINE)
== f"""usage: example.py [-h] [--foo str] [--bar int] [--boo int]
{ARGPARSE_OPTIONS_TEXT}:
Expand All @@ -2377,7 +2377,7 @@ class Cfg(BaseSettings):
Cfg(_cli_parse_args=True)

assert (
re.sub(r'0x\w+', '0xffffffff', capsys.readouterr().out, re.MULTILINE)
re.sub(r'0x\w+', '0xffffffff', capsys.readouterr().out, flags=re.MULTILINE)
== f"""usage: example.py [-h] [--date_str str]
{argparse_options_text}:
Expand Down

0 comments on commit fa17c0a

Please sign in to comment.