Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: Lib/test/test_future5.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_ftplib.py ('k') | Lib/test/test_glob.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Check that multiple features can be enabled. 1 # Check that multiple features can be enabled.
2 from __future__ import unicode_literals, print_function 2 from __future__ import unicode_literals, print_function
3 3
4 import sys 4 import sys
5 import unittest 5 import unittest
6 from test import support 6 from . import support
7 7
8 8
9 class TestMultipleFeatures(unittest.TestCase): 9 class TestMultipleFeatures(unittest.TestCase):
10 10
11 def test_unicode_literals(self): 11 def test_unicode_literals(self):
12 self.assertIsInstance("", str) 12 self.assertIsInstance("", str)
13 13
14 def test_print_function(self): 14 def test_print_function(self):
15 with support.captured_output("stderr") as s: 15 with support.captured_output("stderr") as s:
16 print("foo", file=sys.stderr) 16 print("foo", file=sys.stderr)
17 self.assertEqual(s.getvalue(), "foo\n") 17 self.assertEqual(s.getvalue(), "foo\n")
18 18
19 19
20 def test_main(): 20 def test_main():
21 support.run_unittest(TestMultipleFeatures) 21 support.run_unittest(TestMultipleFeatures)
OLDNEW
« no previous file with comments | « Lib/test/test_ftplib.py ('k') | Lib/test/test_glob.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+