[issue15246] Line coverage for collectionts.abc.Set

2012-07-03 Thread James King

New submission from James King :

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 
<http://bugs.python.org/issue15246>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15246] Line coverage for collectionts.abc.Set

2012-07-05 Thread James King

James King  added the comment:

How about a working test instead? Let me know if it looks right.

--
Added file: http://bugs.python.org/file26267/set_abc_coverage.patch

___
Python tracker 
<http://bugs.python.org/issue15246>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com