Skip to content

Commit 68357c8

Browse files
committed
Fix use of 2.7 only assertion.
1 parent 61a72d2 commit 68357c8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/test_discovery.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ def test_type_coercion(self):
178178
self._check_query_types(request)
179179

180180
# Five is right out.
181-
self.assertRaisesRegexp(
182-
TypeError, '"five" is not an allowed value in',
183-
zoo.query, er=['one', 'five'])
181+
self.assertRaises(TypeError, zoo.query, er=['one', 'five'])
184182

185183
def test_optional_stack_query_parameters(self):
186184
http = HttpMock(datafile('zoo.json'), {'status': '200'})

0 commit comments

Comments
 (0)