[Python-modules-commits] [deap] 07/08: reapplied fix-tests.patch

Daniel Stender danstender-guest at moszumanska.debian.org
Fri Oct 16 17:47:00 UTC 2015


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

danstender-guest pushed a commit to branch master
in repository deap.

commit 36166c6e552a0b376ad9e07bba28950ee05866cd
Merge: ba7bc3e d52b278
Author: Daniel Stender <debian at danielstender.com>
Date:   Fri Oct 16 19:30:24 2015 +0200

    reapplied fix-tests.patch

 deap/tests/test_logbook.py          |  2 +-
 deap/tests/test_pickle.py           | 13 ++++----
 debian/.git-dpm                     |  4 +--
 debian/patches/0002-fix-tests.patch | 63 +++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 5 files changed, 73 insertions(+), 10 deletions(-)

diff --cc debian/.git-dpm
index e22a274,0000000..2a903d3
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,11 -1,0 +1,11 @@@
 +# see git-dpm(1) from git-dpm package
- cccef6357535a69f53b2e0f9ceae9790cf2ae14c
- cccef6357535a69f53b2e0f9ceae9790cf2ae14c
++d52b2785a0611a8cd175c7a4185b6d2be27d99cd
++d52b2785a0611a8cd175c7a4185b6d2be27d99cd
 +cd6d4cb6de7bc5d56feb2b983fc9e3d51307103d
 +cd6d4cb6de7bc5d56feb2b983fc9e3d51307103d
 +deap_1.0.1.orig.tar.gz
 +1d5ae42173f9ae721c626661ba71efd4bfe45887
 +848514
 +debianTag="debian/%e%v"
 +patchedTag="patched/%e%v"
 +upstreamTag="upstream/%e%u"
diff --cc debian/patches/0002-fix-tests.patch
index 0000000,0000000..4c14f5d
new file mode 100644
--- /dev/null
+++ b/debian/patches/0002-fix-tests.patch
@@@ -1,0 -1,0 +1,63 @@@
++From d52b2785a0611a8cd175c7a4185b6d2be27d99cd Mon Sep 17 00:00:00 2001
++From: Daniel Stender <debian at danielstener.com>
++Date: Fri, 16 Oct 2015 19:30:13 +0200
++Subject: fix-tests
++
++ make tests run tree independently, removed unused import (cherry
++ picked from repo), disabled defective stuff, see
++ http://groups.google.com/forum/#!topic/deap-users/nOyiGlm38Zw
++ Forwarded: not-needed
++---
++ deap/tests/test_logbook.py |  2 +-
++ deap/tests/test_pickle.py  | 13 ++++++-------
++ 2 files changed, 7 insertions(+), 8 deletions(-)
++
++diff --git a/deap/tests/test_logbook.py b/deap/tests/test_logbook.py
++index f0238fd..b5f2834 100644
++--- a/deap/tests/test_logbook.py
+++++ b/deap/tests/test_logbook.py
++@@ -3,7 +3,7 @@ import unittest
++ 
++ sys.path.append("..")
++ 
++-import tools
+++from deap import tools
++ 
++ class LogbookTest(unittest.TestCase):
++ 
++diff --git a/deap/tests/test_pickle.py b/deap/tests/test_pickle.py
++index 696b4db..0f808ab 100644
++--- a/deap/tests/test_pickle.py
+++++ b/deap/tests/test_pickle.py
++@@ -4,16 +4,15 @@ import unittest
++ import array
++ import pickle
++ import operator
++-from test import test_support
++ 
++ sys.path.append("..")
++ 
++ import numpy
++ 
++-import creator
++-import base
++-import gp
++-import tools
+++from deap import creator
+++from deap import base
+++from deap import gp
+++from deap import tools
++ 
++ def func():
++     return "True"
++@@ -57,8 +56,8 @@ class Pickling(unittest.TestCase):
++         ind.fitness.values = (1.0,)
++         ind_s = pickle.dumps(ind)
++         ind_l = pickle.loads(ind_s)
++-        msg =  "Unpickled individual %s != pickled individual %s" % (str(ind), str(ind_l))
++-        self.failUnlessEqual(ind, ind_l, msg)
+++        # msg =  "Unpickled individual %s != pickled individual %s" % (str(ind), str(ind_l))
+++        self.failUnlessEqual(ind, ind_l)
++         msg =  "Unpickled fitness %s != pickled fitness %s" % (str(ind.fitness), str(ind_l.fitness))
++         self.failUnlessEqual(ind.fitness, ind_l.fitness, msg)
++     
diff --cc debian/patches/series
index b6565dd,0000000..233d16a
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,1 -1,0 +1,2 @@@
 +0001-fix-docs.patch
++0002-fix-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/deap.git



More information about the Python-modules-commits mailing list