Skip to content
Commits on Source (4)
dist: xenial
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
......
Changes
=======
1.4.6 (2019-05-15)
------------------
- Tests were failing on Python 2.7 (#20, #21) due to loss of precision in
str(num). This has been fixed by using repr(num).
1.4.5 (2019-05-14)
------------------
- Replace custom integer and real parsers with pyparsing_common's number (#19).
......
python-snuggs (1.4.5-1) UNRELEASED; urgency=medium
python-snuggs (1.4.6-1~exp1) experimental; urgency=medium
* Team upload.
* New upstream release.
* Add python{,3}-hypothesis to build dependencies.
-- Bas Couwenberg <sebastic@debian.org> Wed, 15 May 2019 06:22:43 +0200
-- Bas Couwenberg <sebastic@debian.org> Wed, 15 May 2019 17:13:50 +0200
python-snuggs (1.4.3-1) unstable; urgency=medium
......
......@@ -16,7 +16,7 @@ import numpy
__all__ = ['eval']
__version__ = "1.4.5"
__version__ = "1.4.6"
# Python 2-3 compatibility
string_types = (str,) if sys.version_info[0] >= 3 else (basestring,) # flake8: noqa
......
......@@ -25,12 +25,12 @@ def truefalse():
@given(integers())
def test_integer_operand(num):
assert list(snuggs.operand.parseString(str(num))) == [num]
assert list(snuggs.operand.parseString(repr(num))) == [num]
@given(floats(allow_infinity=False, allow_nan=False))
def test_real_operand(num):
assert list(snuggs.operand.parseString(str(num))) == [num]
assert list(snuggs.operand.parseString(repr(num))) == [num]
def test_int_expr():
......