Staging
v0.5.1
https://github.com/python/cpython
Revision e557b5c479bd7ffca36f0c1b300e8c795c7a8ab4 authored by Ned Deily on 29 March 2018, 12:57:23 UTC, committed by Ned Deily on 29 March 2018, 12:57:23 UTC
1 parent 4e7efa9
Raw File
Tip revision: e557b5c479bd7ffca36f0c1b300e8c795c7a8ab4 authored by Ned Deily on 29 March 2018, 12:57:23 UTC
bump to 3.7.0b3+
Tip revision: e557b5c
test_future5.py
# 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")


if __name__ == '__main__':
    unittest.main()
back to top