test: Fix flake8-errmsg snapshots (#1260)
This commit is contained in:
4
resources/test/fixtures/flake8_errmsg/EM.py
vendored
4
resources/test/fixtures/flake8_errmsg/EM.py
vendored
@@ -5,6 +5,10 @@ def f_a():
|
||||
raise RuntimeError("This is an example exception")
|
||||
|
||||
|
||||
def f_a_short():
|
||||
raise RuntimeError("Error")
|
||||
|
||||
|
||||
def f_b():
|
||||
example = "example"
|
||||
raise RuntimeError(f"This is an {example} exception")
|
||||
|
||||
@@ -12,18 +12,18 @@ expression: checks
|
||||
fix: ~
|
||||
- kind: FStringInException
|
||||
location:
|
||||
row: 10
|
||||
row: 14
|
||||
column: 23
|
||||
end_location:
|
||||
row: 10
|
||||
row: 14
|
||||
column: 56
|
||||
fix: ~
|
||||
- kind: DotFormatInException
|
||||
location:
|
||||
row: 14
|
||||
row: 18
|
||||
column: 23
|
||||
end_location:
|
||||
row: 14
|
||||
row: 18
|
||||
column: 81
|
||||
fix: ~
|
||||
|
||||
|
||||
@@ -10,20 +10,28 @@ expression: checks
|
||||
row: 5
|
||||
column: 53
|
||||
fix: ~
|
||||
- kind: FStringInException
|
||||
- kind: RawStringInException
|
||||
location:
|
||||
row: 10
|
||||
row: 9
|
||||
column: 23
|
||||
end_location:
|
||||
row: 10
|
||||
row: 9
|
||||
column: 30
|
||||
fix: ~
|
||||
- kind: FStringInException
|
||||
location:
|
||||
row: 14
|
||||
column: 23
|
||||
end_location:
|
||||
row: 14
|
||||
column: 56
|
||||
fix: ~
|
||||
- kind: DotFormatInException
|
||||
location:
|
||||
row: 14
|
||||
row: 18
|
||||
column: 23
|
||||
end_location:
|
||||
row: 14
|
||||
row: 18
|
||||
column: 81
|
||||
fix: ~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user