diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-03-23 09:09:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 09:09:02 -0700 |
commit | 686c84b44029bee9bb5ccb6002990e758834b311 (patch) | |
tree | 861fa7b870c98ed528f002f7064f0af850209992 /testsuite/E12not.py | |
parent | 68cc24fbe60ce31e2f9b40dc6dd484b2abf3a705 (diff) | |
parent | b36fba61bdcbfe336afe53838eb85dde530e6f69 (diff) | |
download | pep8-686c84b44029bee9bb5ccb6002990e758834b311.tar.gz |
Merge pull request #912 from anntzer/vindentwith
Support visual indent of continuation lines after with/assert/raise.
Diffstat (limited to 'testsuite/E12not.py')
-rw-r--r-- | testsuite/E12not.py | 20 |
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()) |