Skip to content

Commit

Permalink
Fix tests on PyPy3.
Browse files Browse the repository at this point in the history
Previously they would fail like this:

  File /home/travis/build/zopefoundation/zope.schema/src/zope/schema/_bootstrapfields.py, line 522, in fromUnicode
    raise self._validation_error(*last_exc.args).with_field_and_value(self, value)
TypeError: __init__() missing 1 required positional argument: 'literal'
  • Loading branch information
jamadden committed Aug 31, 2018
1 parent 28d574d commit 73627cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/zope/schema/_field.py
Expand Up @@ -257,10 +257,7 @@ class Float(Real):


class InvalidDecimalLiteral(ValueError, ValidationError):

def __init__(self, literal):
super(InvalidDecimalLiteral, self).__init__(
"invalid literal for Decimal(): %s" % literal)
"Raised by decimal fields"


@implementer(IDecimal, IFromUnicode)
Expand Down

0 comments on commit 73627cf

Please sign in to comment.