Skip to content

Commit

Permalink
Unload module before test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeisenbarth committed Apr 5, 2024
1 parent b15a5dd commit 059302f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_extension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pickle
import sys

from docutils import nodes
from sphinx import addnodes as sphinx_nodes
Expand Down Expand Up @@ -91,6 +92,10 @@ def test_commands(make_app, rootdir):


def test_nested_full(make_app, rootdir):
# Make sure this sphinx-click reloads the module from this rootdir.
if "greet" in sys.modules:
del sys.modules["greet"]

srcdir = rootdir / 'nested-full'
app = make_app('xml', srcdir=srcdir)
app.build()
Expand Down

0 comments on commit 059302f

Please sign in to comment.