[Git][debian-gis-team/pyosmium][upstream] New upstream version 2.14.3

Bas Couwenberg gitlab at salsa.debian.org
Thu Aug 9 05:56:52 BST 2018


Bas Couwenberg pushed to branch upstream at Debian GIS Project / pyosmium


Commits:
0fa0d489 by Bas Couwenberg at 2018-08-08T20:53:16Z
New upstream version 2.14.3
- - - - -


3 changed files:

- CHANGELOG.md
- src/osmium/version.py
- test/test_geom.py


Changes:

=====================================
CHANGELOG.md
=====================================
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
 
 ### Fixed
 
+## [2.14.3] - 2018-08-08
+
+### Added
+
+### Changed
+
+### Fixed
+
+- fix rounding error in tests
+
 ## [2.14.2] - 2018-08-07
 
 ### Added


=====================================
src/osmium/version.py
=====================================
--- a/src/osmium/version.py
+++ b/src/osmium/version.py
@@ -5,7 +5,7 @@ Version information.
 # the major version
 pyosmium_major = '2.14'
 # current release (Pip version)
-pyosmium_release = '2.14.2'
+pyosmium_release = '2.14.3'
 
 # libosmium version shipped with the Pip release
 libosmium_version = '2.14.2'


=====================================
test/test_geom.py
=====================================
--- a/test/test_geom.py
+++ b/test/test_geom.py
@@ -56,17 +56,17 @@ class TestCoordinateConversion(unittest.TestCase):
 
     def test_lonlat_to_mercator(self):
         c = o.geom.lonlat_to_mercator(o.geom.Coordinates(0,0))
-        assert_equals(c.x, 0)
-        assert_equals(c.y, 0)
+        assert_almost_equals(c.x, 0)
+        assert_almost_equals(c.y, 0)
 
     def test_mercator_lonlat(self):
         c = o.geom.mercator_to_lonlat(o.geom.Coordinates(0,0))
-        assert_equals(c.x, 0)
-        assert_equals(c.y, 0)
+        assert_almost_equals(c.x, 0)
+        assert_almost_equals(c.y, 0)
 
 class TestCoordinates(unittest.TestCase):
 
     def test_coordinate_from_location(self):
         c = o.geom.Coordinates(o.osm.Location(10.0, -3.0))
-        assert_equals(c.x, 10.0)
-        assert_equals(c.y, -3.0)
+        assert_almost_equals(c.x, 10.0)
+        assert_almost_equals(c.y, -3.0)



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/commit/0fa0d489fab1c68d6ce2042b378c3ab830ac824f

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyosmium/commit/0fa0d489fab1c68d6ce2042b378c3ab830ac824f
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/20180809/189072b5/attachment-0001.html>


More information about the Pkg-grass-devel mailing list