Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arch/tests/univariate/test_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ def test_false_reindex():


def test_invalid_arch_model():
with pytest.raises(AssertionError):
with pytest.raises(TypeError):
arch_model(SP500, p="3")


Expand Down
2 changes: 1 addition & 1 deletion arch/univariate/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ def arch_model(
else: # mean == "zero"
am = ZeroMean(y, hold_back=hold_back, rescale=rescale)

if vol in ("arch", "garch", "figarch", "egarch", "aparch") and not isinstance(
if vol_model in ("arch", "garch", "figarch", "egarch", "aparch") and not isinstance(
p, int
):
raise TypeError(
Expand Down