[Python-modules-commits] r14480 - in packages/python-networkx/trunk/debian (4 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Thu Sep 23 22:38:59 UTC 2010
Date: Thursday, September 23, 2010 @ 22:38:58
Author: morph
Revision: 14480
* debian/patches/50_boundary-test-fix.patch
- upstream patch to restrict node boundary test cases to valid range
Added:
packages/python-networkx/trunk/debian/patches/50_boundary-test-fix.patch
Modified:
packages/python-networkx/trunk/debian/changelog
packages/python-networkx/trunk/debian/patches/series
packages/python-networkx/trunk/debian/rules
Modified: packages/python-networkx/trunk/debian/changelog
===================================================================
--- packages/python-networkx/trunk/debian/changelog 2010-09-23 22:06:15 UTC (rev 14479)
+++ packages/python-networkx/trunk/debian/changelog 2010-09-23 22:38:58 UTC (rev 14480)
@@ -26,8 +26,10 @@
* debian/patches/40_add_networkxcss
- added as patch, since networkx.css is missing from the tarball, but needed
to display properly HTML documentation
+ * debian/patches/50_boundary-test-fix.patch
+ - upstream patch to restrict node boundary test cases to valid range
- -- Sandro Tosi <morph at debian.org> Fri, 24 Sep 2010 00:05:09 +0200
+ -- Sandro Tosi <morph at debian.org> Fri, 24 Sep 2010 00:20:56 +0200
python-networkx (1.1-2) unstable; urgency=low
Added: packages/python-networkx/trunk/debian/patches/50_boundary-test-fix.patch
===================================================================
--- packages/python-networkx/trunk/debian/patches/50_boundary-test-fix.patch (rev 0)
+++ packages/python-networkx/trunk/debian/patches/50_boundary-test-fix.patch 2010-09-23 22:38:58 UTC (rev 14480)
@@ -0,0 +1,19 @@
+Description: Restrict node boundary test cases to valid range: the test was incorrectly checking cheeger constants for set size k > |V|/2.
+
+diff -r aef7b61db105 networkx/algorithms/tests/test_boundary.py
+--- a/networkx/algorithms/tests/test_boundary.py Sun Sep 19 18:48:21 2010 -0400
++++ b/networkx/algorithms/tests/test_boundary.py Mon Sep 20 07:59:47 2010 -0600
+@@ -97,13 +97,8 @@ class TestBoundary:
+ return min([float(len(nx.node_boundary(G,sample(G.nodes(),k))))/k
+ for n in range(100)])
+
+ assert_almost_equals(cheeger(P,1),3.00,places=2)
+ assert_almost_equals(cheeger(P,2),2.00,places=2)
+ assert_almost_equals(cheeger(P,3),1.67,places=2)
+ assert_almost_equals(cheeger(P,4),1.00,places=2)
+ assert_almost_equals(cheeger(P,5),0.80,places=2)
+- assert_almost_equals(cheeger(P,6),0.50,places=2)
+- assert_almost_equals(cheeger(P,7),0.43,places=2)
+- assert_almost_equals(cheeger(P,8),0.25,places=2)
+- assert_almost_equals(cheeger(P,9),0.11,places=2)
+- assert_almost_equals(cheeger(P,10),0.00,places=2)
Modified: packages/python-networkx/trunk/debian/patches/series
===================================================================
--- packages/python-networkx/trunk/debian/patches/series 2010-09-23 22:06:15 UTC (rev 14479)
+++ packages/python-networkx/trunk/debian/patches/series 2010-09-23 22:38:58 UTC (rev 14480)
@@ -2,3 +2,4 @@
20_example_dirs_remove
30_use_local_objects.inv
40_add_networkxcss
+50_boundary-test-fix.patch
Modified: packages/python-networkx/trunk/debian/rules
===================================================================
--- packages/python-networkx/trunk/debian/rules 2010-09-23 22:06:15 UTC (rev 14479)
+++ packages/python-networkx/trunk/debian/rules 2010-09-23 22:38:58 UTC (rev 14480)
@@ -25,7 +25,7 @@
# running tests
# known to fail: https://networkx.lanl.gov/trac/ticket/431, 432
- -python setup_egg.py nosetests
+ -PYTHONPATH=$(PYLIBPATH) python setup_egg.py nosetests
build-indep:
# build doc
More information about the Python-modules-commits
mailing list