Skip to content

Commit

Permalink
Use the right pytest methods for setup and teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Feb 27, 2019
1 parent f6310d8 commit 08cbcba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroid/tests/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class AstroidCacheSetupMixin:
"""

@classmethod
def setUpClass(cls):
def setup_class(cls):
cls._builtins = MANAGER.astroid_cache.get(BUILTINS)

@classmethod
def tearDownClass(cls):
def teardown_class(cls):
if cls._builtins:
MANAGER.astroid_cache[BUILTINS] = cls._builtins

0 comments on commit 08cbcba

Please sign in to comment.