Skip to content

Commit aef730a

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

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/graph/rewriting/test_basic.py

-19
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
@@ -832,20 +830,3 @@ def perform(self, *args):
832830
local_rewriter_2,
833831
local_rewriter_1,
834832
]
835-
836-
837-
def test_deprecations():
838-
"""Make sure we can import deprecated classes from current and deprecated modules."""
839-
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

0 commit comments

Comments
 (0)