Hello community, here is the log from the commit of package python3-Twisted for openSUSE:Factory checked in at 2016-04-28 16:50:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Twisted (Old) and /work/SRC/openSUSE:Factory/.python3-Twisted.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-Twisted" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Twisted/python3-Twisted.changes 2016-04-17 22:15:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Twisted.new/python3-Twisted.changes 2016-04-28 16:50:57.000000000 +0200 @@ -1,0 +2,9 @@ +Thu Apr 21 01:13:25 UTC 2016 - arun@gmx.de + +- update to version 16.1.1: + * Twisted Web + + twisted.web.http.Request once again has a reference to the + HTTPFactory which created it, the absence of which was + preventing log messages from being created. (#8272) + +------------------------------------------------------------------- Old: ---- Twisted-16.1.0.tar.bz2 New: ---- Twisted-16.1.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Twisted.spec ++++++ --- /var/tmp/diff_new_pack.R967hJ/_old 2016-04-28 16:50:58.000000000 +0200 +++ /var/tmp/diff_new_pack.R967hJ/_new 2016-04-28 16:50:58.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-Twisted -Version: 16.1.0 +Version: 16.1.1 Release: 0 Url: http://twistedmatrix.com/ Summary: An asynchronous networking framework written in Python ++++++ Twisted-16.1.0.tar.bz2 -> Twisted-16.1.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/NEWS new/Twisted-16.1.1/NEWS --- old/Twisted-16.1.0/NEWS 2016-04-04 09:00:26.000000000 +0200 +++ new/Twisted-16.1.1/NEWS 2016-04-11 04:37:21.000000000 +0200 @@ -1,6 +1,64 @@ Ticket numbers in this file can be looked up by visiting http://twistedmatrix.com/trac/ticket/<number> +Twisted Core 16.1.1 (2016-04-08) +================================ + +No significant changes have been made for this release. + + +Twisted Conch 16.1.1 (2016-04-08) +================================= + +No significant changes have been made for this release. + + +Twisted Mail 16.1.1 (2016-04-08) +================================ + +No significant changes have been made for this release. + + +Twisted Names 16.1.1 (2016-04-08) +================================= + +No significant changes have been made for this release. + + +Twisted News 16.1.1 (2016-04-08) +================================ + +No significant changes have been made for this release. + + +Twisted Pair 16.1.1 (2016-04-08) +================================ + +No significant changes have been made for this release. + + +Twisted Runner 16.1.1 (2016-04-08) +================================== + +No significant changes have been made for this release. + + +Twisted Web 16.1.1 (2016-04-08) +=============================== + +Bugfixes +-------- + - twisted.web.http.Request once again has a reference to the + HTTPFactory which created it, the absence of which was preventing + log messages from being created. (#8272) + + +Twisted Words 16.1.1 (2016-04-08) +================================= + +No significant changes have been made for this release. + + Twisted Core 16.1.0 (2016-04-04) ================================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/PKG-INFO new/Twisted-16.1.1/PKG-INFO --- old/Twisted-16.1.0/PKG-INFO 2016-04-04 09:12:10.000000000 +0200 +++ new/Twisted-16.1.1/PKG-INFO 2016-04-11 04:37:51.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: Twisted -Version: 16.1.0 +Version: 16.1.1 Summary: An asynchronous networking framework written in Python Home-page: http://twistedmatrix.com/ Author: Glyph Lefkowitz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/README.rst new/Twisted-16.1.1/README.rst --- old/Twisted-16.1.0/README.rst 2016-04-04 09:00:26.000000000 +0200 +++ new/Twisted-16.1.1/README.rst 2016-04-11 04:37:21.000000000 +0200 @@ -1,4 +1,4 @@ -Twisted 16.1.0 +Twisted 16.1.1 ============== |pypi| @@ -12,7 +12,7 @@ * idnar imagines hawkowl crashing in through somebody's window to yell at them for using ancient software -For information on what's new in Twisted 16.1.0, see the `NEWS <NEWS>`_ file that comes with the distribution. +For information on what's new in Twisted 16.1.1, see the `NEWS <NEWS>`_ file that comes with the distribution. What is this? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/Twisted.egg-info/PKG-INFO new/Twisted-16.1.1/Twisted.egg-info/PKG-INFO --- old/Twisted-16.1.0/Twisted.egg-info/PKG-INFO 2016-04-04 09:12:07.000000000 +0200 +++ new/Twisted-16.1.1/Twisted.egg-info/PKG-INFO 2016-04-11 04:37:44.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: Twisted -Version: 16.1.0 +Version: 16.1.1 Summary: An asynchronous networking framework written in Python Home-page: http://twistedmatrix.com/ Author: Glyph Lefkowitz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/twisted/_version.py new/Twisted-16.1.1/twisted/_version.py --- old/Twisted-16.1.0/twisted/_version.py 2016-04-04 09:00:26.000000000 +0200 +++ new/Twisted-16.1.1/twisted/_version.py 2016-04-11 04:37:21.000000000 +0200 @@ -8,4 +8,4 @@ """ from twisted.python import versions -version = versions.Version('twisted', 16, 1, 0) +version = versions.Version('twisted', 16, 1, 1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/twisted/web/http.py new/Twisted-16.1.1/twisted/web/http.py --- old/Twisted-16.1.0/twisted/web/http.py 2016-04-04 09:00:26.000000000 +0200 +++ new/Twisted-16.1.1/twisted/web/http.py 2016-04-11 04:37:21.000000000 +0200 @@ -2010,6 +2010,22 @@ @property + def factory(self): + """ + @see: L{HTTPChannel.factory} + """ + return self._channel.factory + + + @factory.setter + def factory(self, value): + """ + @see: L{HTTPChannel.factory} + """ + self._channel.factory = value + + + @property def requestFactory(self): return self._channel.requestFactory diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Twisted-16.1.0/twisted/web/test/test_http.py new/Twisted-16.1.1/twisted/web/test/test_http.py --- old/Twisted-16.1.0/twisted/web/test/test_http.py 2016-04-04 09:00:26.000000000 +0200 +++ new/Twisted-16.1.1/twisted/web/test/test_http.py 2016-04-11 04:37:21.000000000 +0200 @@ -14,7 +14,8 @@ except ImportError: from urllib.parse import urlparse, urlunsplit, clear_cache -from twisted.python.compat import _PY3, iterbytes, networkString, unicode, intToBytes +from twisted.python.compat import (_PY3, iterbytes, networkString, unicode, + intToBytes, NativeStringIO) from twisted.python.failure import Failure from twisted.trial import unittest from twisted.trial.unittest import TestCase @@ -236,7 +237,11 @@ -class ProtocolNegotiationTests(unittest.TestCase): +class GenericHTTPChannelTests(unittest.TestCase): + """ + Tests for L{http._genericHTTPChannelProtocol}, a L{HTTPChannel}-alike which + can handle different HTTP protocol channels. + """ requests = ( b"GET / HTTP/1.1\r\n" b"Accept: text/html\r\n" @@ -322,6 +327,15 @@ ) + def test_factory(self): + """ + The C{factory} attribute is taken from the inner channel. + """ + a = http._genericHTTPChannelProtocolFactory(b'') + a._channel.factory = b"Foo" + self.assertEqual(a.factory, b"Foo") + + class HTTPLoopbackTests(unittest.TestCase): @@ -2205,6 +2219,36 @@ self.assertEqual((None, existing), (req.producer, transport.producer)) + def test_finishProducesLog(self): + """ + L{http.Request.finish} will call the channel's factory to produce a log + message. + """ + factory = http.HTTPFactory() + factory._logDateTime = "sometime" + factory._logDateTimeCall = True + factory.startFactory() + factory.logFile = NativeStringIO() + proto = factory.buildProtocol(None) + + val = [ + b"GET /path HTTP/1.1\r\n", + b"\r\n\r\n" + ] + + trans = StringTransport() + proto.makeConnection(trans) + + for x in val: + proto.dataReceived(x) + + proto._channel.requests[0].finish() + + # A log message should be written out + self.assertIn('sometime "GET /path HTTP/1.1"', + factory.logFile.getvalue()) + + class MultilineHeadersTests(unittest.TestCase): """