summaryrefslogtreecommitdiff
path: root/testsuite/E12not.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/E12not.py')
-rw-r--r--testsuite/E12not.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/E12not.py b/testsuite/E12not.py
index ebaa078..2e2366c 100644
--- a/testsuite/E12not.py
+++ b/testsuite/E12not.py
@@ -639,3 +639,23 @@ print dedent(
# more stuff
)
)
+
+
+def foo():
+ pass
+ raise 123 + \
+ 123
+
+
+class Eggs:
+ pass
+ assert 123456 == \
+ 123456
+
+
+def f1():
+ print('foo')
+ with open('/path/to/some/file/you/want/to/read') as file_1, \
+ open('/path/to/some/file/being/written', 'w') as file_2, \
+ open('just-making-sure-more-continuations-also-work'):
+ file_2.write(file_1.read())