275
271
warnings.filterwarnings('error', category=DeprecationWarning)
276
272
self.assertFirstWarning('error', DeprecationWarning)
277
273
self.assertEqual(1, len(warnings.filters))
279
275
# There should not be a new warning
280
276
self.assertFirstWarning('error', DeprecationWarning)
281
277
self.assertEqual(1, len(warnings.filters))