1 # Check that multiple features can be enabled.
2 from __future__
import unicode_literals
, print_function
6 from . import test_support
9 class TestMultipleFeatures(unittest
.TestCase
):
11 def test_unicode_literals(self
):
12 self
.assertIsInstance("", unicode)
14 def test_print_function(self
):
15 with test_support
.captured_output("stderr") as s
:
16 print("foo", file=sys
.stderr
)
17 self
.assertEqual(s
.getvalue(), "foo\n")
21 test_support
.run_unittest(TestMultipleFeatures
)