zopefoundation / Acquisition

Acquisition is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in.
Other
12 stars 12 forks source link

Use coverage-python-version #40

Closed icemac closed 5 years ago

icemac commented 5 years ago

Instead of using #pragma: no cover to omit a branch from Python 2 coverage analysis we could use https://pypi.org/project/coverage-python-version/

See https://github.com/zopefoundation/zope.sendmail/commit/65c3b4d2036301bd9a27a71afbf68db9da23d2e1 and https://github.com/zopefoundation/zope.sendmail/commit/0619e9dc78ffec2d9f6c6e32d86dd42eab577862 as example usages.