[Python-modules-commits] r31511 - in packages/python-dugong/trunk/debian (4 files)

nikratio-guest at users.alioth.debian.org nikratio-guest at users.alioth.debian.org
Sat Nov 29 22:05:21 UTC 2014


    Date: Saturday, November 29, 2014 @ 22:05:20
  Author: nikratio-guest
Revision: 31511

* New upstream release.
* Dropped fix_test_examples.diff, fixed upstream.
* Bumped Standard-Version to 3.9.6 (no changes required).

Modified:
  packages/python-dugong/trunk/debian/changelog
  packages/python-dugong/trunk/debian/control
  packages/python-dugong/trunk/debian/patches/series
Deleted:
  packages/python-dugong/trunk/debian/patches/fix_test_examples.diff

Modified: packages/python-dugong/trunk/debian/changelog
===================================================================
--- packages/python-dugong/trunk/debian/changelog	2014-11-27 22:34:47 UTC (rev 31510)
+++ packages/python-dugong/trunk/debian/changelog	2014-11-29 22:05:20 UTC (rev 31511)
@@ -1,3 +1,11 @@
+python-dugong (3.4+dfsg-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Dropped fix_test_examples.diff, fixed upstream.
+  * Bumped Standard-Version to 3.9.6 (no changes required).
+
+ -- Nikolaus Rath <Nikolaus at rath.org>  Sat, 29 Nov 2014 13:34:00 -0800
+
 python-dugong (3.3+dfsg-2) unstable; urgency=medium
 
   * Skip unit tests in test/test_examples.py. These tests require network

Modified: packages/python-dugong/trunk/debian/control
===================================================================
--- packages/python-dugong/trunk/debian/control	2014-11-27 22:34:47 UTC (rev 31510)
+++ packages/python-dugong/trunk/debian/control	2014-11-29 22:05:20 UTC (rev 31511)
@@ -10,7 +10,7 @@
                python3-pytest,
                dh-python,
                python3-setuptools
-Standards-Version: 3.9.5
+Standards-Version: 3.9.6
 XS-Testsuite: autopkgtest
 Homepage: https://bitbucket.org/nikratio/python-dugong
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-dugong/trunk/
@@ -38,6 +38,8 @@
     or simply return '' on read)
   * supports non-blocking, asynchronous operation and is compatible with the
     asyncio module.
+  * can in most cases distinguish between an unavailable DNS server and
+    an unresolvable hostname.
   * is not compatible with old HTTP 0.9 or 1.0 servers.
  .
  All request and response headers are represented as str, but must be encodable

Deleted: packages/python-dugong/trunk/debian/patches/fix_test_examples.diff
===================================================================
--- packages/python-dugong/trunk/debian/patches/fix_test_examples.diff	2014-11-27 22:34:47 UTC (rev 31510)
+++ packages/python-dugong/trunk/debian/patches/fix_test_examples.diff	2014-11-29 22:05:20 UTC (rev 31511)
@@ -1,49 +0,0 @@
-Author: Nikolaus Rath <Nikolaus at rath.org>
-Forwarded: not-needed
-Last-Update: 2014-11-14
-Description: Fix test skip conditions
-
-This patch ensures that tests requiring a hardcoded server to
-respond with a 200 status are properly skipped if the remote
-server returns a redirect instead.
-
---- a/test/test_examples.py
-+++ b/test/test_examples.py
-@@ -18,7 +18,8 @@
- import os
- import sys
- import pytest
--from urllib.request import build_opener, ProxyHandler, URLError
-+from urllib.request import (build_opener, ProxyHandler, URLError, HTTPRedirectHandler,
-+                            HTTPError)
- try:
-     import asyncio
- except ImportError:
-@@ -26,12 +27,24 @@
- 
- basename = os.path.join(os.path.dirname(__file__), '..')
- 
-+# Yes, this is the way to avoid following redirects with urllib,
-+# and it is indeed absolutely terrible. But dependending on the
-+# requests module just to run this simple test does not (yet)
-+# seem appropriate either.
-+class HTTPNoRedirectHandler(HTTPRedirectHandler):
-+    def http_error_302(self, url, fp, errcode, errmsg, headers):
-+        fp.close()
-+        raise HTTPError(url, errcode, errmsg, headers, None)
-+
-+    http_error_301 = http_error_303 = http_error_307 = http_error_302
-+
- def check_url(url):
-     '''Skip test if *url* cannot be reached'''
- 
--    # Examples ignore proxy settings, so should urllib
--    proxy_handler = ProxyHandler({})
--    opener = build_opener(proxy_handler)
-+    # To avoid using proxies (as the examples do), we need to add a proxy
-+    # handler, but pass an empty dictionary for the proxy settings. urllib
-+    # again...
-+    opener = build_opener(ProxyHandler({}), HTTPNoRedirectHandler())
- 
-     try:
-         resp = opener.open(url, None, 15)

Modified: packages/python-dugong/trunk/debian/patches/series
===================================================================
--- packages/python-dugong/trunk/debian/patches/series	2014-11-27 22:34:47 UTC (rev 31510)
+++ packages/python-dugong/trunk/debian/patches/series	2014-11-29 22:05:20 UTC (rev 31511)
@@ -1,2 +1 @@
-fix_test_examples.diff
 use-local-intersphinx.patch




More information about the Python-modules-commits mailing list