Skip to content

Commit

Permalink
[minor] total_weight()
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPeters committed Mar 28, 2023
1 parent 4477789 commit ac5f8f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_abcrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ def converted_to_weighted_abc_yaml_instances(filename, rule_id, algorithm, load_
profile, committeesize, compute_instances = load_abc_yaml_file[filename]
if rule_id in only_defined_for_unit_weights:
return
if len(profile) == profile.total_weight:
if len(profile) == profile.total_weight():
return # no need to test this instance
weighted_profile = profile.copy()
weighted_profile.convert_to_weighted()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def test_property_functions_with_handcrafted_instances(
return # not supported
else:
if convert_to_weighted:
if len(profile) == profile.total_weight:
if len(profile) == profile.total_weight():
return # no need to test this instance
weighted_profile = profile.copy()
weighted_profile.convert_to_weighted()
Expand Down

0 comments on commit ac5f8f8

Please sign in to comment.