Skip to content

Commit fa17c0a

Browse files
Fix regex flags accidentally passed as count (#328)
1 parent fe1f950 commit fa17c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ class Cfg(BaseSettings):
23502350
Cfg(_cli_parse_args=True)
23512351

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

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

0 commit comments

Comments
 (0)