Skip to content

Commit

Permalink
Merge pull request #247 from twisted/latest-twisted-test-incompatibility
Browse files Browse the repository at this point in the history
Fix to accommodate Twisted's new URL validity checking
  • Loading branch information
glyph authored Jun 11, 2019
2 parents 86cca01 + 2a81fb7 commit 10f30f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/treq/test/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def test_handles_invalid_schemes(self):
so even after a successful request.
"""
stub = StubTreq(_StaticTestResource())
self.failureResultOf(stub.get(""), SchemeNotSupported)
self.failureResultOf(stub.get("x-unknown-1:"), SchemeNotSupported)
self.successResultOf(stub.get("http://url.com"))
self.failureResultOf(stub.get(""), SchemeNotSupported)
self.failureResultOf(stub.get("x-unknown-2:"), SchemeNotSupported)

def test_files_are_rejected(self):
"""
Expand Down

0 comments on commit 10f30f4

Please sign in to comment.