Skip to content

Commit d33ec64

Browse files
Merge branch 'master' into rm-freezegun-types
2 parents d092b67 + 3df71d3 commit d33ec64

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
from sybil import Sybil
66
from sybil.parsers.rest import (
7+
ClearNamespaceParser,
78
DocTestParser,
89
PythonCodeBlockParser,
910
)
1011

1112
pytest_collect_file = Sybil(
1213
parsers=[
14+
ClearNamespaceParser(),
1315
DocTestParser(optionflags=ELLIPSIS),
1416
PythonCodeBlockParser(),
1517
],

docs/source/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ See the :doc:`api-reference` for full usage details.
7575
matching_targets = cloud_reco_client.query(image=my_image_file)
7676
7777
assert matching_targets[0].target_id == target_id
78+
a = 1
7879
7980
.. invisible-code-block: python
8081
@@ -91,12 +92,7 @@ To write unit tests for code which uses this library, without using your Vuforia
9192

9293
pip3 install vws-python-mock
9394

94-
.. invisible-code-block: python
95-
96-
# Reset test
97-
for i in list(globals().keys()):
98-
if not i.startswith('_'):
99-
exec('del ' + i)
95+
.. clear-namespace
10096
10197
.. invisible-code-block: python
10298

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ dev = [
256256
"sphinx-autodoc-typehints==1.22",
257257
"sphinx-prompt==1.5.0",
258258
"sphinxcontrib-spelling==8.0.0",
259-
"sybil==4.0.1",
259+
"sybil==5.0.0",
260260
"types-requests==2.28.11.16",
261261
"vulture==2.7",
262262
]

0 commit comments

Comments
 (0)