Skip to content

Commit 62393ad

Browse files
committed
added test for warnings in register
1 parent e8c47e4 commit 62393ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test_freeze.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from collections import OrderedDict
55
from array import array
66
from types import MappingProxyType
7-
from frozendict import FreezeError
7+
from frozendict import FreezeError, FreezeWarning
88

99

1010
class A:
@@ -96,3 +96,8 @@ def test_deepfreeze_custom(a):
9696
a,
9797
custom_converters={A: custom_a_converter}
9898
) == custom_a_converter(a)
99+
100+
101+
def test_register_warning():
102+
with pytest.warns(FreezeWarning):
103+
cool.register(bytearray, bytes)

0 commit comments

Comments
 (0)