Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: rename setup/teardown functions for pytest 8.1.1 compatibility #92

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
_fakecmd = os.path.join(os.path.dirname(__file__), 'fakecmd.py')


def setup():
def setup_module():
global _tempdir, _srcdir, _outdir
_tempdir = tempfile.mkdtemp()
_srcdir = os.path.join(_tempdir, 'src')
_outdir = os.path.join(_tempdir, 'out')
os.mkdir(_srcdir)


def teardown():
def teardown_module():
shutil.rmtree(_tempdir)


Expand Down
4 changes: 2 additions & 2 deletions tests/test_svgstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from sphinxcontrib import plantuml


def setup():
def setup_module():
global _tempdir
_tempdir = tempfile.mkdtemp()


def teardown():
def teardown_module():
shutil.rmtree(_tempdir)


Expand Down
Loading