Staging
v0.8.1
Revision 64db5aac6be73b14396bcde1648997e208b5a8da authored by Miss Islington (bot) on 15 August 2019, 16:38:22 UTC, committed by GitHub on 15 August 2019, 16:38:22 UTC

Without indendation, seems like strcpy line is parallel to `if` condition.
(cherry picked from commit 69f37bcb28d7cd78255828029f895958b5baf6ff)

Co-authored-by: Hansraj Das <raj.das.136@gmail.com>
1 parent f781283
Raw File
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