[Zodb-checkins] CVS: ZODB3/ExtensionClass/test - test_Missing.py:1.1
Jeremy Hylton
jeremy at zope.com
Fri May 9 18:50:37 EDT 2003
Update of /cvs-repository/ZODB3/ExtensionClass/test
In directory cvs.zope.org:/tmp/cvs-serv23789/test
Added Files:
test_Missing.py
Log Message:
Another fix for the coercion bug.
I'm hesitant to see this fix really works, except that I wrote a very
minimal test suite that covers all the cases I'm aware of. The
previous checkin caused numberic operations when the Missing object
was on the right-hand side.
=== Added File ZODB3/ExtensionClass/test/test_Missing.py ===
from Missing import Value
assert Value != 12
assert 12 != Value
assert u"abc" != Value
assert Value != u"abc"
assert 1 + Value == Value
assert Value + 1 == Value
assert Value == 1 + Value
assert Value == Value + 1
More information about the Zodb-checkins
mailing list