forked from github/pelican
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.
12 lines
252 B
Python
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')
|