[Python-checkins] CVS: python/dist/src/Lib/test test___future__.py,1.1,1.2
Tim Peters
tim_one@users.sourceforge.net
Thu, 01 Mar 2001 18:53:10 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17770/python/dist/src/Lib/test
Modified Files:
test___future__.py
Log Message:
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.
Index: test___future__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___future__.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test___future__.py 2001/02/26 21:14:49 1.1
--- test___future__.py 2001/03/02 02:53:08 1.2
***************
*** 11,18 ****
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
verify(type(optional) is TupleType, "optional isn't tuple")
--- 11,17 ----
if verbose:
print "Checking __future__ ", feature, "value", value
! optional = value.getOptionalRelease()
! mandatory = value.getMandatoryRelease()
verify(type(optional) is TupleType, "optional isn't tuple")