Skip to content

Commit 059302f

Browse files
committed
Unload module before test
1 parent b15a5dd commit 059302f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_extension.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pickle
2+
import sys
23

34
from docutils import nodes
45
from sphinx import addnodes as sphinx_nodes
@@ -91,6 +92,10 @@ def test_commands(make_app, rootdir):
9192

9293

9394
def test_nested_full(make_app, rootdir):
95+
# Make sure this sphinx-click reloads the module from this rootdir.
96+
if "greet" in sys.modules:
97+
del sys.modules["greet"]
98+
9499
srcdir = rootdir / 'nested-full'
95100
app = make_app('xml', srcdir=srcdir)
96101
app.build()

0 commit comments

Comments
 (0)