File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ def __copy__(self):
225
225
rv = object .__new__ (self .__class__ ) # type: Scope
226
226
227
227
rv ._type = self ._type
228
+ rv .client = self .client
228
229
rv ._level = self ._level
229
230
rv ._name = self ._name
230
231
rv ._fingerprint = self ._fingerprint
Original file line number Diff line number Diff line change 19
19
)
20
20
21
21
22
- SLOTS_NOT_COPIED = {"client" }
23
- """__slots__ that are not copied when copying a Scope object."""
24
-
25
-
26
22
def test_copying ():
27
23
s1 = Scope ()
28
24
s1 .fingerprint = {}
@@ -43,7 +39,7 @@ def test_all_slots_copied():
43
39
scope_copy = copy .copy (scope )
44
40
45
41
# Check all attributes are copied
46
- for attr in set (Scope .__slots__ ) - SLOTS_NOT_COPIED :
42
+ for attr in set (Scope .__slots__ ):
47
43
assert getattr (scope_copy , attr ) == getattr (scope , attr )
48
44
49
45
You can’t perform that action at this time.
0 commit comments