Mercurial > cpython-lru_cache-weakref
view Lib/test/test_future5.py @ 80272:ec00f8570c55
Merge typo fix.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Mon, 05 Nov 2012 22:23:16 +0200 |
| parents | c5fca67a7e8c |
| children | 83ae10bf608c |
line wrap: on
line source
# Check that multiple features can be enabled. from __future__ import unicode_literals, print_function import sys import unittest from test import support class TestMultipleFeatures(unittest.TestCase): def test_unicode_literals(self): self.assertIsInstance("", str) def test_print_function(self): with support.captured_output("stderr") as s: print("foo", file=sys.stderr) self.assertEqual(s.getvalue(), "foo\n") def test_main(): support.run_unittest(TestMultipleFeatures)
