[Git][debian-gis-team/python-snuggs][upstream] New upstream version 1.4.6

Bas Couwenberg gitlab at salsa.debian.org
Wed May 15 16:21:19 BST 2019



Bas Couwenberg pushed to branch upstream at Debian GIS Project / python-snuggs


Commits:
f5e8f45a by Bas Couwenberg at 2019-05-15T15:13:02Z
New upstream version 1.4.6
- - - - -


4 changed files:

- .travis.yml
- CHANGES.txt
- snuggs/__init__.py
- test_snuggs.py


Changes:

=====================================
.travis.yml
=====================================
@@ -1,6 +1,7 @@
 dist: xenial
 language: python
 python:
+  - "2.7"
   - "3.6"
   - "3.7"
 install:


=====================================
CHANGES.txt
=====================================
@@ -1,6 +1,11 @@
 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).


=====================================
snuggs/__init__.py
=====================================
@@ -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


=====================================
test_snuggs.py
=====================================
@@ -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():



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/commit/f5e8f45a74749fbb6500aa0b2f9bb34859c358bf

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/commit/f5e8f45a74749fbb6500aa0b2f9bb34859c358bf
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20190515/48332540/attachment-0001.html>


More information about the Pkg-grass-devel mailing list