Skip to content

Commit

Permalink
silence the warning generated by #2715 in the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Sep 1, 2016
1 parent c8530bd commit 5b7eeeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyramid/tests/test_authentication.py
Expand Up @@ -1089,7 +1089,10 @@ def test_remember_insane_userid(self):
helper = self._makeOne('secret')
request = self._makeRequest()
userid = object()
result = helper.remember(request, userid)
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always', RuntimeWarning)
result = helper.remember(request, userid)
self.assertTrue(str(w[-1].message).startswith('userid is of type'))
values = self._parseHeaders(result)
self.assertEqual(len(result), 3)
value = values[0]
Expand Down

0 comments on commit 5b7eeeb

Please sign in to comment.