diff options
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index 59b8905b..6fe67d20 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -3,7 +3,8 @@ """ Test the parsing logic in parsing.py """ -import attr +import dataclasses + import pytest import cmd2 @@ -939,9 +940,9 @@ def test_statement_is_immutable(): assert string == statement assert statement.args == statement assert statement.raw == '' - with pytest.raises(attr.exceptions.FrozenInstanceError): + with pytest.raises(dataclasses.FrozenInstanceError): statement.args = 'bar' - with pytest.raises(attr.exceptions.FrozenInstanceError): + with pytest.raises(dataclasses.FrozenInstanceError): statement.raw = 'baz' |