Make names in __future__.py bind to class instances instead of 2-tuples.
Suggested on c.l.py by William Tanksley, and I like it.
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py
index 3ae1cf1..b8ef120 100644
--- a/Lib/test/test___future__.py
+++ b/Lib/test/test___future__.py
@@ -10,10 +10,9 @@
value = getattr(__future__, feature)
if verbose:
print "Checking __future__ ", feature, "value", value
- verify(type(value) is TupleType, "feature value isn't tuple")
- verify(len(value) == 2, "feature value isn't 2-tuple")
- optional, mandatory = value
+ optional = value.getOptionalRelease()
+ mandatory = value.getMandatoryRelease()
verify(type(optional) is TupleType, "optional isn't tuple")
verify(len(optional) == 5, "optional isn't 5-tuple")