(root)/
Python-3.12.0/
Lib/
test/
test_future5.py
       1  # Check that multiple features can be enabled.
       2  from __future__ import unicode_literals, print_function
       3  
       4  import sys
       5  import unittest
       6  from test import support
       7  
       8  
       9  class ESC[4;38;5;81mTestMultipleFeatures(ESC[4;38;5;149munittestESC[4;38;5;149m.ESC[4;38;5;149mTestCase):
      10  
      11      def test_unicode_literals(self):
      12          self.assertIsInstance("", str)
      13  
      14      def test_print_function(self):
      15          with support.captured_output("stderr") as s:
      16              print("foo", file=sys.stderr)
      17          self.assertEqual(s.getvalue(), "foo\n")
      18  
      19  
      20  if __name__ == '__main__':
      21      unittest.main()