[issue2661] Mapping tests cannot be passed by user implementations

2008-04-19 Thread David Anderson
New submission from David Anderson <[EMAIL PROTECTED]>: Some test cases in Lib/test/mapping_tests.py are problematic for users wishing to test their own implementations of the mapping protocol: - TestHashMappingProtocol.test_repr() requires the user implementations to look like a dict when rep

[issue2661] Mapping tests cannot be passed by user implementations

2012-02-20 Thread Éric Araujo
Éric Araujo added the comment: I think it would be great to test the stdlib’s mapping classes against common tests; there is a patch to add more MutableMapping methods to dbm classes for example, and it was not trivial to get good test coverage. Not sure about the status of the module though,

[issue2661] Mapping tests cannot be passed by user implementations

2012-02-20 Thread Éric Araujo
Éric Araujo added the comment: > I think it would be great to test the stdlib’s mapping classes against common > tests grep told me that most of them already do. Sorry for the noise, it’s late/soon here. -- ___ Python tracker

[issue2661] Mapping tests cannot be passed by user implementations

2009-05-26 Thread Walter Dörwald
Walter Dörwald added the comment: Any custom mapping class should have a repr test anyway, so IMHO it doesn't matter whether the base test has a repr test or not. The suggested fixes for TestMappingProtocol.test_fromkeys() and TestHashMappingProtocol.test_mutatingiteration() sound OK however.

[issue2661] Mapping tests cannot be passed by user implementations

2009-05-12 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Tests priority: -> normal versions: +Python 3.1 -Python 3.0 ___ Python tracker ___ ___ Pytho

[issue2661] Mapping tests cannot be passed by user implementations

2009-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue2661] Mapping tests cannot be passed by user implementations

2009-05-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Walter, this is your code. Care to incorporate any of David's ideas? David, for my own code, the usual technique for something like test_repr() is to subclass TestHashMappingProtocol and override the test method with a customized test_repr() method. --