Skip to content

Commit f231769

Browse files
committed
python 2 does not have assertRegex
1 parent 121bbec commit f231769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pusher_tests/test_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_x_pusher_library_header(self):
5454
req = Request(conf, u'GET', u'/some/obscure/api', {u'foo': u'bar'})
5555
self.assertTrue('X-Pusher-Library' in req.headers)
5656
pusherLib = req.headers['X-Pusher-Library']
57-
self.assertRegex(pusherLib, r'^pusher-http-python \d+(\.\d+)+(rc\d+)?$')
57+
self.assertRegexpMatches(pusherLib, r'^pusher-http-python \d+(\.\d+)+(rc\d+)?$')
5858

5959
if __name__ == '__main__':
6060
unittest.main()

0 commit comments

Comments
 (0)