summaryrefslogtreecommitdiff
path: root/testsuite/E21.py
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2014-12-20 20:14:00 -0800
committerIan Lee <IanLee1521@gmail.com>2014-12-20 20:14:00 -0800
commit809a870514f2991a51e8faf47c2f6b59086ae609 (patch)
treeb251dbc50d9ddcefb1aeef2a98ef9fc4148ba4a4 /testsuite/E21.py
parent1fcf60085b66e6df41e20b572cdcb2bda5639e93 (diff)
downloadpep8-809a870514f2991a51e8faf47c2f6b59086ae609.tar.gz
Make explicit error on print only emit if "print_function" is imported; issue #338issue-338
Diffstat (limited to 'testsuite/E21.py')
-rw-r--r--testsuite/E21.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/E21.py b/testsuite/E21.py
index 96b55b8..44516e6 100644
--- a/testsuite/E21.py
+++ b/testsuite/E21.py
@@ -7,6 +7,13 @@ dict['key'] ['subkey'] = list[index]
#: Okay
spam(1)
dict['key'] = list[index]
+#: E211
+print ('abc')
+#: Okay
+print('abc')
+#: Okay
+from __future__ import print_function
+print ('abc')
# This is not prohibited by PEP8, but avoid it.