Skip to content

Commit

Permalink
add some testing for attr
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jun 6, 2022
1 parent bc57b45 commit 424b40e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ def test_slots():
assert dill.pickles(Y.y)
assert dill.copy(y).y == value

def test_attr():
import attr
@attr.s
class A:
a = attr.ib()

v = A(1)
assert dill.copy(v) == v

def test_metaclass():
if dill._dill.PY3:
class metaclass_with_new(type):
Expand Down

0 comments on commit 424b40e

Please sign in to comment.