Skip to content

Commit 6a86c56

Browse files
committed
Fix some more
1 parent e951c33 commit 6a86c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from pytest import raises
3232

3333
from cattr import Converter
34-
from cattr._compat import is_bare, is_union_type
34+
from cattr._compat import copy_with, is_bare, is_union_type
3535
from cattr.converters import NoneType
3636
from cattr.errors import StructureHandlerNotFoundError
3737

@@ -130,7 +130,7 @@ def test_stringifying_sets(set_and_type):
130130
if is_bare(input_set_type):
131131
input_set_type = input_set_type[str]
132132
else:
133-
input_set_type = input_set_type.__origin__[str]
133+
input_set_type = copy_with(input_set_type, str)
134134
converted = converter.structure(set_, input_set_type)
135135
assert len(converted) == len(set_)
136136
for e in set_:

0 commit comments

Comments
 (0)