We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f214e23 commit 4d5382aCopy full SHA for 4d5382a
1 file changed
python/tests/conftest.py
@@ -4,6 +4,7 @@
4
from syrupy.extensions.single_file import SingleFileSnapshotExtension
5
6
import egglog.conversion
7
+import egglog.exp.array_api
8
9
10
@pytest.fixture(autouse=True)
@@ -15,6 +16,12 @@ def _reset_conversions():
15
16
egglog.conversion._TO_PROCESS_DECLS = old_conversion_decls
17
18
19
+@pytest.fixture(autouse=True)
20
+def _reset_current_egraph():
21
+ yield
22
+ egglog.exp.array_api._CURRENT_EGRAPH = None
23
+
24
25
class PythonSnapshotExtension(SingleFileSnapshotExtension):
26
_file_extension = "py"
27
0 commit comments