1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/tests/test_testsuite.py
Kevin Yap 1e0e541b57 Initial pass of removing Python 2 support
This commit removes Six as a dependency for Pelican, replacing the
relevant aliases with the proper Python 3 imports. It also removes
references to Python 2 logic that did not require Six.
2019-11-26 06:16:41 +09:00

12 lines
252 B
Python

# -*- coding: utf-8 -*-
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')