Commit 6d2022eb authored by Jason R. Coombs's avatar Jason R. Coombs

Merge pull request #533 from s-t-e-v-e-n-k/compare-ep-attributes

Stop comparing repr()'s in TestEntryPoint
parents 8ce73d44 b1eeba1c
......@@ -405,7 +405,10 @@ class TestEntryPoints:
def checkSubMap(self, m):
assert len(m) == len(self.submap_expect)
for key, ep in self.submap_expect.items():
assert repr(m.get(key)) == repr(ep)
assert m.get(key).name == ep.name
assert m.get(key).module_name == ep.module_name
assert sorted(m.get(key).attrs) == sorted(ep.attrs)
assert sorted(m.get(key).extras) == sorted(ep.extras)
submap_expect = dict(
feature1=EntryPoint('feature1', 'somemodule', ['somefunction']),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment