diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-03-02 02:53:08 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-03-02 02:53:08 (GMT) |
commit | d74bc432b2964599d8261aa367c9591080d623d3 (patch) | |
tree | 67f10c9691194977e896ce724916007074098b1f /Lib/test/test___future__.py | |
parent | 239432a54515e230e19d92b9e1be0a071d8b826c (diff) | |
download | cpython-d74bc432b2964599d8261aa367c9591080d623d3.zip cpython-d74bc432b2964599d8261aa367c9591080d623d3.tar.gz cpython-d74bc432b2964599d8261aa367c9591080d623d3.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test___future__.py')
-rw-r--r-- | Lib/test/test___future__.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ for feature in features: 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") |