summaryrefslogtreecommitdiff
path: root/testsuite/E40.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/E40.py')
-rw-r--r--testsuite/E40.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/E40.py b/testsuite/E40.py
index f9a18fc..6c71fa2 100644
--- a/testsuite/E40.py
+++ b/testsuite/E40.py
@@ -34,6 +34,21 @@ finally:
print('made attempt to import foo')
import bar
+#: Okay
+with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", DeprecationWarning)
+ import foo
+
+import bar
+#: Okay
+if False:
+ import foo
+elif not True:
+ import bar
+else:
+ import mwahaha
+
+import bar
#: E402
VERSION = '1.2.3'