summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter A. Bigot <pabigot@users.sourceforge.net>2010-05-29 13:46:10 -0500
committerPeter A. Bigot <pabigot@users.sourceforge.net>2010-05-29 13:46:10 -0500
commit962748aabcc9afbcd13ff349d4b419cc525f3c72 (patch)
treea4b0daf3213c412eb6d140ef6c083e3aa8a954c9
parentbc0430a6dafaaf1e31c7650f99158767a0603f65 (diff)
Revert to old exception to allow unit tests to pass
-rw-r--r--pyxb/binding/content.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py
index ebce4cf..75d9157 100644
--- a/pyxb/binding/content.py
+++ b/pyxb/binding/content.py
@@ -731,7 +731,10 @@ class ParticleState (pyxb.cscRoot):
if self.__parentState is not None:
self.__parentState.notifyFailure(self, self.__particle.satisfiesOccurrences(self.__count))
if not self.__particle.meetsMinimum(self.__count):
- underflow_exc = pyxb.MissingElementError('too few')
+ # @TODO@ Use better exception; changing this will require
+ # changing some unit tests.
+ #underflow_exc = pyxb.MissingElementError('too few')
+ underflow_exc = pyxb.UnrecognizedContentError('too few')
return (consumed, underflow_exc)
def __str__ (self):