Skip to content

Commit

Permalink
fix (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
aphi authored Feb 21, 2025
1 parent 79418f9 commit bfdc672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulp/tests/test_pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ def extract_option_from_command_line(
'off'
>>> cmd = "cbc model.mps -strong 101 -timeMode elapsed -branch"
>>> PULP_CBC_CMDTest.extract_option_from_command_line(cmd, "strong", grp_pattern="\d+")
>>> PULP_CBC_CMDTest.extract_option_from_command_line(cmd, "strong", grp_pattern="\\d+")
'101'
"""
pattern = re.compile(rf"{prefix}{option}\s+({grp_pattern})\s*")
Expand Down Expand Up @@ -1947,7 +1947,7 @@ def test_strong(self):
# Extract option value from command line
command_line = PULP_CBC_CMDTest.read_command_line_from_log_file(logFilename)
option_value = PULP_CBC_CMDTest.extract_option_from_command_line(
command_line, option="strong", grp_pattern="\d+"
command_line, option="strong", grp_pattern="\\d+"
)
self.assertEqual("10", option_value)

Expand Down

0 comments on commit bfdc672

Please sign in to comment.