Files
openide/python/testData/formatter/continuationIndentIsNotUsedForNestedFunctionCallsInWithStatement.py
Mikhail Golubev e4d7a000db PY-12749 Sparingly use continuation indents for arguments in the headers of control statements
Usage of continuation indents (which presumably are wider than normal
indents) in the headers of control statements was supposed to prevent
PEP8's error E125 "Continuation line with same indent as next logical
line". However such indents is not necessary for e.g. nested function
calls where indent of the arguments is already visually distinctive
(larger) from the offset of the following statement list. To
distinguish such cases I've added check that argument list is located
on the same line as the header of the containing control statement. If
line numbers differ we use normal indent for the arguments and
continuation indent otherwise. It doesn't matter for complex
non-hanging indent cases like if foo(bar(1... because alignment will
be used there anyway.
2015-01-29 13:03:49 +03:00

4 lines
204 B
Python

with raises_assertion(
has_string('Missing download_urls: {}, {}'.format(
self.other_download_url, self.another_download_url))):
fixture.assert_detail_page_yields_expected()