Skip to content

Commit 31f5367

Browse files
committed
remove test for deprecated import
1 parent 656b6e1 commit 31f5367

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/graph/rewriting/test_basic.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import pytest
42

53
from pytensor.configdefaults import config
@@ -837,15 +835,4 @@ def perform(self, *args):
837835
def test_deprecations():
838836
"""Make sure we can import deprecated classes from current and deprecated modules."""
839837
with pytest.deprecated_call():
840-
from pytensor.graph.rewriting.basic import GlobalOptimizer
841-
842-
with pytest.deprecated_call():
843-
from pytensor.graph.opt import ( # noqa: F401 F811
844-
GlobalOptimizer,
845-
LocalOptimizer,
846-
)
847-
848-
del sys.modules["pytensor.graph.opt"]
849-
850-
with pytest.deprecated_call():
851-
from pytensor.graph.opt import GraphRewriter # noqa: F401
838+
pass

0 commit comments

Comments
 (0)