[Python-modules-commits] r13654 - in packages/python-djvulibre/trunk/debian (3 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Fri Jun 25 23:49:20 UTC 2010
Date: Friday, June 25, 2010 @ 23:49:19
Author: jwilk
Revision: 13654
Fix test for maximum cache size on 64-bit architectures.
Added:
packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff
Modified:
packages/python-djvulibre/trunk/debian/changelog
packages/python-djvulibre/trunk/debian/patches/series
Modified: packages/python-djvulibre/trunk/debian/changelog
===================================================================
--- packages/python-djvulibre/trunk/debian/changelog 2010-06-25 23:36:01 UTC (rev 13653)
+++ packages/python-djvulibre/trunk/debian/changelog 2010-06-25 23:49:19 UTC (rev 13654)
@@ -1,8 +1,9 @@
python-djvulibre (0.1.18-2) UNRELEASED; urgency=low
* Disable memory test that is likely to fail on 64-bit architectures.
+ * Fix test for maximum cache size on 64-bit architectures.
- -- Jakub Wilk <jwilk at debian.org> Sat, 26 Jun 2010 00:45:15 +0200
+ -- Jakub Wilk <jwilk at debian.org> Sat, 26 Jun 2010 01:40:25 +0200
python-djvulibre (0.1.18-1) unstable; urgency=low
Added: packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff
===================================================================
--- packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff (rev 0)
+++ packages/python-djvulibre/trunk/debian/patches/max-cachesize-64bit.diff 2010-06-25 23:49:19 UTC (rev 13654)
@@ -0,0 +1,27 @@
+Description: Fix test for maximum cache size on 64-bit architectures.
+Author: Jakub Wilk <jwilk at debian.org>
+Last-Update: 2010-06-26
+
+--- a/tests/decode.py
++++ b/tests/decode.py
+@@ -15,6 +15,7 @@
+ from djvu.decode import *
+ from djvu.sexpr import *
+
++import sys
+ import os
+ import tempfile
+ import subprocess
+@@ -44,10 +45,10 @@
+
+ context = Context()
+ assert_equal(context.cache_size, 10 << 20)
+- for n in -100, 0, 1 << 32:
++ for n in -100, 0, (sys.maxint + 1) * 2:
+ assert_raises(ValueError, set_cache_size, n)
+ assert_raises(ValueError, set_cache_size, 0)
+- for n in 1, 100, 1 << 10, 1 << 20, (1 << 32) -1:
++ for n in 1, 100, 1 << 10, 1 << 20, 2 * sys.maxint + 1:
+ set_cache_size(n)
+ assert_equal(context.cache_size, n)
+ context.clear_cache()
Modified: packages/python-djvulibre/trunk/debian/patches/series
===================================================================
--- packages/python-djvulibre/trunk/debian/patches/series 2010-06-25 23:36:01 UTC (rev 13653)
+++ packages/python-djvulibre/trunk/debian/patches/series 2010-06-25 23:49:19 UTC (rev 13654)
@@ -1,2 +1,3 @@
setup-disable-auto-cython.diff
disable-memory-test.diff
+max-cachesize-64bit.diff
More information about the Python-modules-commits
mailing list