Skip to content
Commits on Source (4)
......@@ -5,7 +5,7 @@ python:
- "3.6"
- "3.7"
install:
- "pip install pytest-cov coveralls pyparsing==2.3.1"
- "pip install pytest-cov coveralls pyparsing~=2.0"
- "pip install -e .[test]"
script:
- python -m pytest --cov snuggs --cov-report term-missing
......@@ -16,5 +16,5 @@ deploy:
tags: true
condition: "$TRAVIS_PYTHON_VERSION = 3.6"
provider: pypi
user: mapboxci
user: __token__
distributions: "sdist bdist_wheel"
Changes
=======
1.4.7 (2019-09-18)
------------------
- The snuggs tests of syntax errors no longer assert a specific pyparsing
exception message as the format of these messages is not stable (#15).
Previous versions of snuggs had no other issues with pyparsing 2.3 or 2.4.
1.4.6 (2019-05-15)
------------------
- Tests were failing on Python 2.7 (#20, #21) due to loss of precision in
......
python-snuggs (1.4.7-1) unstable; urgency=medium
* Team upload.
* New upstream release.
-- Bas Couwenberg <sebastic@debian.org> Thu, 19 Sep 2019 06:44:11 +0200
python-snuggs (1.4.6-2) unstable; urgency=medium
* Team upload.
......
......@@ -16,7 +16,7 @@ import numpy
__all__ = ['eval']
__version__ = "1.4.6"
__version__ = "1.4.7"
# Python 2-3 compatibility
string_types = (str,) if sys.version_info[0] >= 3 else (basestring,) # flake8: noqa
......
......@@ -196,9 +196,6 @@ def test_missing_closing_paren():
snuggs.eval("(+ 1 2")
assert excinfo.value.lineno == 1
assert excinfo.value.offset == 7
exception_options = ['expected a function or operator',
'Expected {Forward: ... | Forward: ...}']
assert str(excinfo.value) in exception_options
def test_missing_func():
......@@ -214,9 +211,6 @@ def test_missing_func2():
snuggs.eval("(# 1 2)")
assert excinfo.value.lineno == 1
assert excinfo.value.offset == 2
exception_options = ['expected a function or operator',
'Expected {Forward: ... | Forward: ...}']
assert str(excinfo.value) in exception_options
def test_undefined_var():
......@@ -232,9 +226,6 @@ def test_bogus_higher_order_func():
snuggs.eval("((bogus * 2) 2)")
assert excinfo.value.lineno == 1
assert excinfo.value.offset == 3
exception_options = ['expected a function or operator',
'Expected {Forward: ... | Forward: ...}']
assert str(excinfo.value) in exception_options
def test_type_error():
......