aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_future.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r--Lib/test/test_future.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py
index 8846f6a8d19..1cede70eeb7 100644
--- a/Lib/test/test_future.py
+++ b/Lib/test/test_future.py
@@ -106,6 +106,11 @@ class FutureTest(unittest.TestCase):
support.unload("test.test_future5")
from test import test_future5
+ def test_unicode_literals_exec(self):
+ scope = {}
+ exec("from __future__ import unicode_literals; x = ''", {}, scope)
+ self.assertTrue(isinstance(scope["x"], str))
+
def test_main():
support.run_unittest(FutureTest)