Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineHaas committed May 28, 2024
1 parent 1e896ba commit 022d4f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/constraint_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ def compare_lp_files(self, filename, ignored=None, my_om=None):

# sometimes, 0.0 is printed, sometimes 0, harmonise that
exp_diff = [
line.replace("0.0 ", "0 ").replace("= 0.0", "= 0") for line in exp_diff
line.replace("0.0 ", "0 ").replace("= 0.0", "= 0")
for line in exp_diff
]
gen_diff = [
line.replace("0.0 ", "0 ").replace("= 0.0", "= 0") for line in exp_diff
line.replace("0.0 ", "0 ").replace("= 0.0", "= 0")
for line in exp_diff
]

assert len(exp_diff) == len(gen_diff)
Expand Down

0 comments on commit 022d4f4

Please sign in to comment.