Staging
v0.5.1
v0.5.1
Revision 325477e20eb6c2b813d06312d9b270706e186ec9 authored by Georg Brandl on 13 May 2011, 04:54:23 UTC, committed by Georg Brandl on 13 May 2011, 04:54:23 UTC
1 parent cc5ea68
test_future5.py
# Check that multiple features can be enabled.
from __future__ import unicode_literals, print_function
import sys
import unittest
from . 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)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...