[python-mapnik] 04/05: Update skip-tests-for-missing-data.patch for test_pdf_printing().

Bas Couwenberg sebastic at debian.org
Sat Nov 5 15:21:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-mapnik.

commit d34c4e60626267e5fc28d7cd737f38b6dd9ba9de
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Nov 5 15:27:41 2016 +0100

    Update skip-tests-for-missing-data.patch for test_pdf_printing().
---
 debian/changelog                                 |  1 +
 debian/patches/skip-tests-for-missing-data.patch | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8db4e42..a9998b4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-mapnik (1:0.0~20161104-ea5fd11-1) UNRELEASED; urgency=medium
 
   * New upstream git snapshot.
+  * Update skip-tests-for-missing-data.patch for test_pdf_printing().
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 05 Nov 2016 15:00:46 +0100
 
diff --git a/debian/patches/skip-tests-for-missing-data.patch b/debian/patches/skip-tests-for-missing-data.patch
index 315ccac..edb6a64 100644
--- a/debian/patches/skip-tests-for-missing-data.patch
+++ b/debian/patches/skip-tests-for-missing-data.patch
@@ -1486,3 +1486,23 @@ Forwarded: https://github.com/mapnik/python-mapnik/pull/107
          ds = mapnik.Datasource(
              type='topojson',
              file='../data/topojson/escaped.topojson')
+--- a/test/python_tests/pdf_printing_test.py
++++ b/test/python_tests/pdf_printing_test.py
+@@ -3,6 +3,7 @@
+ import os
+ 
+ from nose.tools import eq_
++from nose.plugins.skip import SkipTest
+ 
+ import mapnik
+ from .utilities import execution_path, run_all
+@@ -32,6 +33,9 @@ def make_pdf(m, output_pdf, esri_wkt):
+ 
+ if mapnik.has_pycairo():
+ 	def test_pdf_printing():
++                if not os.path.exists('../data/good_maps/marker-text-line.xml'):
++                    raise SkipTest
++
+ 		source_xml = '../data/good_maps/marker-text-line.xml'.encode('utf-8')
+ 		m = make_map_from_xml(source_xml)
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-mapnik.git



More information about the Pkg-grass-devel mailing list