Skip to content

Commit

Permalink
Replace setup() method with setup_method() to add compatibility with …
Browse files Browse the repository at this point in the history
…pytest 8
  • Loading branch information
hrnciar committed Apr 19, 2024
1 parent 2c258f7 commit 66ca27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class TestMathematicaLexer:
def setup(self):
def setup_method(self):
self.lexer = MathematicaLexer()

def verify(self, code, expected):
Expand Down Expand Up @@ -414,5 +414,5 @@ def test_lexical_scope_nasty(self):

if __name__ == "__main__":
t = TestMathematicaLexer()
t.setup()
t.setup_method()
t.test_get()

0 comments on commit 66ca27d

Please sign in to comment.