Lines Matching refs:warnings
7 import warnings
317 self.assertEqual(len(w.warnings), 2)
320 with warnings.catch_warnings(), self.assertRaises(SyntaxError):
321 warnings.simplefilter('error', SyntaxWarning)
325 with warnings.catch_warnings(), self.assertRaises(SyntaxError):
326 warnings.simplefilter('error', DeprecationWarning)
330 with warnings.catch_warnings(record=True) as w:
331 warnings.simplefilter('always')
336 with warnings.catch_warnings(record=True) as w:
337 warnings.simplefilter('always')