[Python-modules-commits] r24738 - in packages/python-xlrd/trunk/debian (4 files)
bernat at users.alioth.debian.org
bernat at users.alioth.debian.org
Tue Jun 11 14:00:06 UTC 2013
Date: Tuesday, June 11, 2013 @ 14:00:01
Author: bernat
Revision: 24738
Use shipped unittests.
Added:
packages/python-xlrd/trunk/debian/patches/disable-non-working-tests.patch
Modified:
packages/python-xlrd/trunk/debian/changelog
packages/python-xlrd/trunk/debian/patches/series
packages/python-xlrd/trunk/debian/rules
Modified: packages/python-xlrd/trunk/debian/changelog
===================================================================
--- packages/python-xlrd/trunk/debian/changelog 2013-06-11 13:49:56 UTC (rev 24737)
+++ packages/python-xlrd/trunk/debian/changelog 2013-06-11 14:00:01 UTC (rev 24738)
@@ -16,6 +16,7 @@
* Add doc-base registration.
* Update manual page.
* Switch to machine-readable debian/copyright.
+ * Use shipped unittests.
-- Vincent Bernat <bernat at debian.org> Tue, 11 Jun 2013 15:22:17 +0200
Added: packages/python-xlrd/trunk/debian/patches/disable-non-working-tests.patch
===================================================================
--- packages/python-xlrd/trunk/debian/patches/disable-non-working-tests.patch (rev 0)
+++ packages/python-xlrd/trunk/debian/patches/disable-non-working-tests.patch 2013-06-11 14:00:01 UTC (rev 24738)
@@ -0,0 +1,22 @@
+Disable tests requiring non-existent xlsx files.
+
+Index: xlrd-0.9.2/tests/test_open_workbook.py
+===================================================================
+--- xlrd-0.9.2.orig/tests/test_open_workbook.py 2013-04-09 20:58:13.000000000 +0200
++++ xlrd-0.9.2/tests/test_open_workbook.py 2013-06-11 15:58:45.012571048 +0200
+@@ -24,15 +24,3 @@
+ # For now, we just check this doesn't raise an error.
+ open_workbook(from_this_dir('picture_in_cell.xls'),
+ formatting_info=True)
+-
+- def test_xlsx_simple(self):
+- # For now, we just check this doesn't raise an error.
+- open_workbook(from_this_dir('text_bar.xlsx'))
+- # we should make assertions here that data has been
+- # correctly processed.
+-
+- def test_xlsx(self):
+- # For now, we just check this doesn't raise an error.
+- open_workbook(from_this_dir('reveng1.xlsx'))
+- # we should make assertions here that data has been
+- # correctly processed.
Modified: packages/python-xlrd/trunk/debian/patches/series
===================================================================
--- packages/python-xlrd/trunk/debian/patches/series 2013-06-11 13:49:56 UTC (rev 24737)
+++ packages/python-xlrd/trunk/debian/patches/series 2013-06-11 14:00:01 UTC (rev 24738)
@@ -1 +1,2 @@
setup-dont-include-doc-and-examples.patch
+disable-non-working-tests.patch
Modified: packages/python-xlrd/trunk/debian/rules
===================================================================
--- packages/python-xlrd/trunk/debian/rules 2013-06-11 13:49:56 UTC (rev 24737)
+++ packages/python-xlrd/trunk/debian/rules 2013-06-11 14:00:01 UTC (rev 24738)
@@ -6,3 +6,8 @@
override_dh_install:
dh_install
mv debian/python-xlrd/usr/bin/runxlrd.py debian/python-xlrd/usr/bin/runxlrd
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
+ python -m unittest discover
+endif
More information about the Python-modules-commits
mailing list