Skip to content

Commit 2562c79

Browse files
committed
fix typo
1 parent d74e92e commit 2562c79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/enforce_match_arg_in_assert_produces_warning.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
22
3-
Enforce that all usages of tms.assert_produces_warning use
3+
Enforce that all usages of tm.assert_produces_warning use
44
the "match" argument. This will help ensure that users always see
55
the correct warning message.
66
7-
tms.assert_produces_warning(None) is excluded as no warning is
7+
tm.assert_produces_warning(None) is excluded as no warning is
88
produced.
99
1010
"""
@@ -32,7 +32,7 @@ def visit_Call(self, node) -> None:
3232
# only check for attribute function of class/module tm
3333
if ( isinstance(node.func.value, ast.Name) and
3434
node.func.value.id == "tm" ):
35-
# ignore tms.assert_produces_warning(None)/tms.assert_produces_warning()
35+
# ignore tm.assert_produces_warning(None)/tm.assert_produces_warning()
3636
if ( len(node.args) == 0 or
3737
(isinstance(node.args[0], ast.Constant) and
3838
node.args[0].value is None) ):

0 commit comments

Comments
 (0)