[Python-checkins] r55281 - sandbox/trunk/abc/abc.py sandbox/trunk/abc/test_abc.py
guido.van.rossum
python-checkins at python.org
Sat May 12 04:20:38 CEST 2007
Author: guido.van.rossum
Date: Sat May 12 04:20:38 2007
New Revision: 55281
Modified:
sandbox/trunk/abc/abc.py
sandbox/trunk/abc/test_abc.py
Log:
Remove a leftover reference to a deleted class.
Fix assumptions in the tests about what range() returns.
Modified: sandbox/trunk/abc/abc.py
==============================================================================
--- sandbox/trunk/abc/abc.py (original)
+++ sandbox/trunk/abc/abc.py Sat May 12 04:20:38 2007
@@ -283,7 +283,7 @@
# XXX Should this derive from Set instead of from ComposableSet?
-class MutableSet(ComposableSet):
+class MutableSet(Set):
@abstractmethod
def add(self, value):
Modified: sandbox/trunk/abc/test_abc.py
==============================================================================
--- sandbox/trunk/abc/test_abc.py (original)
+++ sandbox/trunk/abc/test_abc.py Sat May 12 04:20:38 2007
@@ -44,11 +44,11 @@
self.assertEqual(a[0], 0)
self.assertEqual(a[9], 9)
self.assertEqual(a[-1], 9)
- self.assertEqual(list(a), range(10))
+ self.assertEqual(list(a), list(range(10)))
#self.assertEqual(a, range(10))
b = a[1:-1]
self.assertEqual(b.__class__, abc.AdaptToSequence)
- self.assertEqual(list(b), range(1, 9))
+ self.assertEqual(list(b), list(range(1, 9)))
def test_adapt_to_mapping(self):
a = abc.AdaptToMapping({1: 10, 2: 20})
More information about the Python-checkins
mailing list