Stop using reload_module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
We only use it in tests, but it can still cause headaches. For example, https:/
First differing element 0:
ShardRange<1a to 1z as of 0000000001.00000>
ShardRange<1a to 1z as of 0000000001.00000>
which was strange since ShardRange.__eq__ is just
if not isinstance(other, ShardRange):
return False
return self.lower == other.lower and self.upper == other.upper
Turned out, neither self nor other was actually an instance of ShardRange! ShardRange's id changed as a result of the reload.
https:/