[Python-modules-commits] [python-restless] 05/07: update patch to 2.0.3
Wolfgang Borgert
debacle at moszumanska.debian.org
Mon Dec 26 03:21:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-restless.
commit 793eb9720f909811f43b7b3ff07d88812c8dea2e
Author: W. Martin Borgert <debacle at debian.org>
Date: Mon Dec 26 03:19:26 2016 +0000
update patch to 2.0.3
---
debian/patches/0001-fix-test-fail.patch | 32 +++++---------------------------
1 file changed, 5 insertions(+), 27 deletions(-)
diff --git a/debian/patches/0001-fix-test-fail.patch b/debian/patches/0001-fix-test-fail.patch
index a0b81fa..4218f26 100644
--- a/debian/patches/0001-fix-test-fail.patch
+++ b/debian/patches/0001-fix-test-fail.patch
@@ -9,35 +9,13 @@ after tornado 4.0, we need to provide a connection when faking a request
tests/test_tnd.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
-diff --git a/tests/test_tnd.py b/tests/test_tnd.py
-index 3d53f06..9f0ccde 100644
--- a/tests/test_tnd.py
+++ b/tests/test_tnd.py
-@@ -17,6 +17,27 @@ def _newer_or_equal_(v):
- return False
- return True
+@@ -5,6 +5,7 @@
+ from restless.utils import json
+ from restless.constants import UNAUTHORIZED
-+def _equal_(v):
-+ for i in six.moves.xrange(min(len(v), len(version_info))):
-+ if v[i] != version_info[i]:
-+ return False
-+ return True
-+
-+
-+if _newer_or_equal_((4, 0, 0, 0)):
-+ from tornado.http1connection import HTTP1Connection
-+
-+def _newer_or_equal_(v):
-+ for i in six.moves.xrange(min(len(v), len(version_info))):
-+ expected, tnd = v[i], version_info[i]
-+ if tnd > expected:
-+ return True
-+ elif tnd == expected:
-+ continue
-+ else:
-+ return False
-+ return True
-+
++from tornado import version_info
- def _equal_(v):
+ def _newer_or_equal_(v):
for i in six.moves.xrange(min(len(v), len(version_info))):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-restless.git
More information about the Python-modules-commits
mailing list