File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 110
110
def __getattr__ (name ):
111
111
if name == "MaxAndArgmax" :
112
112
raise AttributeError (
113
- "The class `MaxAndArgmax` has been deprecated. "
114
- "Call `Max` and `Argmax` separately as an alternative."
113
+ "The class `MaxandArgmax` has been deprecated. Call `Max` and `Argmax` seperately as an alternative."
115
114
)
115
+ raise AttributeError (f"module { __name__ !r} has no attribute { name !r} " )
116
116
117
117
118
118
def _get_atol_rtol (a , b ):
Original file line number Diff line number Diff line change @@ -1423,7 +1423,10 @@ def test_bool(self):
1423
1423
1424
1424
1425
1425
def test_MaxAndArgmax_deprecated ():
1426
- with pytest .raises (AttributeError ):
1426
+ with pytest .raises (
1427
+ AttributeError ,
1428
+ match = "The class `MaxandArgmax` has been deprecated. Call `Max` and `Argmax` seperately as an alternative." ,
1429
+ ):
1427
1430
pytensor .tensor .math .MaxAndArgmax
1428
1431
1429
1432
You can’t perform that action at this time.
0 commit comments