[Python-apps-commits] r8561 - in packages/veusz/trunk/debian (2 files)

jeremysanders-guest at users.alioth.debian.org jeremysanders-guest at users.alioth.debian.org
Mon Apr 30 18:31:08 UTC 2012


    Date: Monday, April 30, 2012 @ 18:31:07
  Author: jeremysanders-guest
Revision: 8561

Run self test as LANG=C

Modified:
  packages/veusz/trunk/debian/changelog
  packages/veusz/trunk/debian/patches/arm-self-tests.diff

Modified: packages/veusz/trunk/debian/changelog
===================================================================
--- packages/veusz/trunk/debian/changelog	2012-04-30 18:22:41 UTC (rev 8560)
+++ packages/veusz/trunk/debian/changelog	2012-04-30 18:31:07 UTC (rev 8561)
@@ -6,6 +6,7 @@
   * Replace patches with use of upstream setup.py options and symlinks
   * Bumped Standards-Version to 3.9.3
   * Do not run incorrectly failing self tests (Closes: #654604)
+  * Patch self test to run as LANG=C
   * Update copyright header for released DEP5
 
  -- Jeremy Sanders <jeremy at jeremysanders.net>  Mon, 30 Apr 2012 19:21:00 +0100

Modified: packages/veusz/trunk/debian/patches/arm-self-tests.diff
===================================================================
--- packages/veusz/trunk/debian/patches/arm-self-tests.diff	2012-04-30 18:22:41 UTC (rev 8560)
+++ packages/veusz/trunk/debian/patches/arm-self-tests.diff	2012-04-30 18:31:07 UTC (rev 8561)
@@ -1,17 +1,27 @@
 Description: Fix build failure during self test on ARM platforms
  These self tests fail on ARM, due to differences in floating point
- precision. They do not indicate real problems. The tests are fixed
- in the upstream development version, but a direct fix would be a very
- large patch. This patch will no longer be required in >1.15.
+ precision. They do not indicate real problems. The tests are fixed in
+ the upstream development version, but a direct fix would be a very
+ large patch. We also patch the language variable to be C for the self
+ tests to work in various locales. These changes will no longer be
+ required in >1.15.
 Origin: vendor
 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654604
 Forwarded: not-needed
 Author: Jeremy Sanders <jeremy at jeremysanders.net>
 Last-Update: 2012-04-25
 
---- a/tests/runselftest.py
-+++ b/tests/runselftest.py
-@@ -52,6 +52,15 @@
+--- veusz-1.15.orig/tests/runselftest.py
++++ veusz-1.15/tests/runselftest.py
+@@ -40,6 +40,7 @@
+ import glob
+ import os.path
+ import sys
++import os
+ 
+ import veusz.qtall as qt4
+ import veusz.utils.textrender
+@@ -52,6 +53,15 @@
  # it appears the failures aren't important however
  excluded_tests = set([
  
@@ -27,3 +37,12 @@
          # fails on Windows
          'histo.vsz',      # duplicate in long list of values
          'spectrum.vsz',   # angstrom is split into two on linux
+@@ -174,6 +184,8 @@
+         sys.exit(fails)
+ 
+ if __name__ == '__main__':
++    os.environ['LANG'] = 'C'
++
+     app = qt4.QApplication([])
+ 
+     veusz.setting.transient_settings['unsafe_mode'] = True




More information about the Python-apps-commits mailing list