[New-bugs-announce] [issue15246] Line coverage for collectionts.abc.Set

James King report at bugs.python.org
Wed Jul 4 04:02:06 CEST 2012


New submission from James King <james at agentultra.com>:

I'm working on increasing the line-coverage of the tests for the Set ABC in the collections.abc module.

I encountered something a little funky IMO that I'm not sure is an issue or bug... but the __and__ method passes a generator object to the constructor of the Set subclass' constructor where the code seems to check for Iterator. This makes my naive tests for the '&' operator to fail. So I haven't included them in this patch, statisfied with the equality tests and isdisjoint.

First patch, advice welcome.

----------
components: Tests
files: set_abc_coverage.patch
keywords: patch
messages: 164632
nosy: agentultra
priority: normal
severity: normal
status: open
title: Line coverage for collectionts.abc.Set
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file26253/set_abc_coverage.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15246>
_______________________________________


More information about the New-bugs-announce mailing list