Skip to content

Commit 165ef9d

Browse files
committed
tests: fix pytest API constraint
1 parent 28fb3db commit 165ef9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/tc2231/test_tc2231.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_attonlyquoted(content_disposition):
6262
content_disposition(b'Content-Disposition: "attachment"')
6363

6464

65-
@pytest.mark.xfail(reason=AssertionError('Cannot test here'))
65+
@pytest.mark.xfail(reason='Cannot test here')
6666
def test_attonly403(content_disposition):
6767
h = content_disposition(b'Content-Disposition: attachment')
6868
raise AssertionError('Cannot test here')
@@ -338,7 +338,7 @@ def test_attconfusedparam(content_disposition):
338338
assert h.params['xfilename'] == 'foo.html'
339339

340340

341-
@pytest.mark.xfail(reason=AssertionError('Cannot test here'))
341+
@pytest.mark.xfail(reason='Cannot test here')
342342
def test_attabspath(content_disposition):
343343
h = content_disposition(b'Content-Disposition: attachment; filename="/foo.html"')
344344
assert h.attachment

0 commit comments

Comments
 (0)