1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/test_testsuite.py
Justin Mayer d43b786b30 Modernize code base to Python 3+ syntax
Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
2020-04-27 09:45:31 +02:00

10 lines
227 B
Python

import warnings
from pelican.tests.support import unittest
class TestSuiteTest(unittest.TestCase):
def test_error_on_warning(self):
with self.assertRaises(UserWarning):
warnings.warn('test warning')