diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-06-03 19:57:23 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-06-03 19:57:23 +0200 |
commit | 721b89d83474b1a2747fd9d923016eaa4a584ebc (patch) | |
tree | 53dbdac5f423b587fff01b65abac6e95f879ed29 /dev-python/nnpy/files | |
parent | dev-ml/ocaml-uri: remove spurious blank line (diff) | |
download | gentoo-721b89d83474b1a2747fd9d923016eaa4a584ebc.tar.gz gentoo-721b89d83474b1a2747fd9d923016eaa4a584ebc.tar.bz2 gentoo-721b89d83474b1a2747fd9d923016eaa4a584ebc.zip |
dev-python/nnpy: bump to 1.4.1
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-python/nnpy/files')
-rw-r--r-- | dev-python/nnpy/files/py3.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/nnpy/files/py3.patch b/dev-python/nnpy/files/py3.patch new file mode 100644 index 000000000000..8a39044bb7f1 --- /dev/null +++ b/dev-python/nnpy/files/py3.patch @@ -0,0 +1,19 @@ +commit 98ee46a4034ca94d6123b854e79f1dc3f35fff4a +Author: Alexis Ballier <aballier@gentoo.org> +Date: Sat Jun 3 19:55:10 2017 +0200 + + Fix tests under python3. + +diff --git a/nnpy/tests.py b/nnpy/tests.py +index ba2a3fe..7f9f6e0 100644 +--- a/nnpy/tests.py ++++ b/nnpy/tests.py +@@ -17,7 +17,7 @@ class Tests(unittest.TestCase): + poller = nnpy.PollSet((sub, nnpy.POLLIN)) + self.assertEqual(len(poller.poll()), 1) + self.assertEqual(poller.poll()[0], 1) +- self.assertEqual(sub.recv(), 'FLUB') ++ self.assertEqual(sub.recv().decode(), 'FLUB') + self.assertEqual(pub.get_statistic(nnpy.STAT_MESSAGES_SENT), 1) + pub.close() + sub.shutdown(sub_conn) |