Skip to content

Commit 7fdc888

Browse files
committed
Fix semantic errors in last commit
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
1 parent 2fd2873 commit 7fdc888

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_version_range.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,14 @@ def test_VersionRange_contains_works_for_star_range(self):
192192

193193
SemverVersion("1.0.0") in VersionRange.from_string("vers:nginx/*")
194194

195+
195196
VERSION_RANGE_TESTS_BY_SCHEME = {
196197
"nginx": ["0.8.40+", "0.7.52-0.8.39", "0.9.10", "1.5.0+, 1.4.1+"],
197198
}
198199

199200

200-
@pytest.mark.xfail("Not all schemes are implemented yet")
201-
def test_all_schemes_are_tested_for_round_tripping(self):
201+
@pytest.mark.xfail(reason="Not all schemes are implemented yet")
202+
def test_all_schemes_are_tested_for_round_tripping():
202203

203204
for scheme in RANGE_CLASS_BY_SCHEMES:
204205
VERSION_RANGE_TESTS_BY_SCHEME[scheme]
@@ -208,7 +209,7 @@ def test_all_schemes_are_tested_for_round_tripping(self):
208209
"scheme, native_ranges",
209210
VERSION_RANGE_TESTS_BY_SCHEME.items(),
210211
)
211-
def test_from_native_and_from_string_round_trip(self, scheme, native_ranges):
212+
def test_from_native_and_from_string_round_trip(scheme, native_ranges):
212213

213214
range_class = RANGE_CLASS_BY_SCHEMES[scheme]
214215
for rng in native_ranges:

0 commit comments

Comments
 (0)