[Python-modules-commits] [python-pyld] 180/276: Assume httpStatus is an int.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:08 UTC 2014


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

debacle pushed a commit to branch master
in repository python-pyld.

commit 08f4cfe20ea4bedb2f3a6250d3c56bff95140e26
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Mon Sep 9 23:40:48 2013 -0400

    Assume httpStatus is an int.
---
 tests/runtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/runtests.py b/tests/runtests.py
index 88b1ca7..f275fcf 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -264,7 +264,7 @@ def create_document_loader(test):
         options = test.data.get('option')
         if options and url == test.base:
             if ('redirectTo' in options and
-                options.get('httpStatus', '').startswith('3')):
+                options.get('httpStatus') >= 300):
                 doc['documentUrl'] = (test.manifest.data['baseIri'] +
                     options['redirectTo'])
             elif 'httpLink' in options:

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



More information about the Python-modules-commits mailing list