Skip to content

Commit a0dfecf

Browse files
committed
Adjust test to new error message.
1 parent 66af7fc commit a0dfecf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/devpi_constrained/tests/test_constrained.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ def test_invalid_constraints(constrainedindex, mapp, testapp):
7171
result, constraints=['bla,']),
7272
code=400)
7373
assert "Error while parsing constrains" in r
74-
assert "\',\'" in r
74+
if "\',\'" in r:
75+
assert 'Expected string_end' in r
76+
else:
77+
assert 'bla,' in r
78+
assert 'Expected end or semicolon' in r
7579

7680

7781
def test_conflicting_constraints(constrainedindex, mapp, testapp):

0 commit comments

Comments
 (0)