'Pytest warning after starting a new line if the line is too long
With the following code:
assert record_before_create_template + 1 == record_after_create_template, \
"fail to create parameter template for the initial record_num is {0} and the latter is {1}".\
format(record_before_create_template, record_after_create_template)
pycharm warns that the line is too long, and if I use the fill paragraph function by itself and run the testcase, the result has warnings:
DeprecationWarning: invalid escape sequence '\
'
return codecs.unicode_escape_decode(input, self.errors)[0]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
