Hello community,

here is the log from the commit of package python-python-subunit for 
openSUSE:Factory checked in at 2013-06-05 13:08:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-subunit (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-subunit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-subunit"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-subunit/python-python-subunit.changes  
    2013-05-02 11:44:11.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-subunit.new/python-python-subunit.changes
 2013-06-05 13:08:42.000000000 +0200
@@ -1,0 +2,6 @@
+Sun Jun  2 12:52:13 UTC 2013 - [email protected]
+
+- update to 0.0.12:
+  * fix data corruption bug in v2 protocol streaming
+
+-------------------------------------------------------------------

Old:
----
  python-subunit-0.0.11.tar.gz
  python-subunit-0.0.9.tar.gz

New:
----
  python-subunit-0.0.12.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-subunit.spec ++++++
--- /var/tmp/diff_new_pack.qodP8Y/_old  2013-06-05 13:08:43.000000000 +0200
+++ /var/tmp/diff_new_pack.qodP8Y/_new  2013-06-05 13:08:43.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-python-subunit
-Version:        0.0.11
+Version:        0.0.12
 Release:        0
 Summary:        Python implementation of subunit test streaming protocol
 License:        Apache-2.0 or BSD-3-Clause

++++++ python-subunit-0.0.11.tar.gz -> python-subunit-0.0.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-subunit-0.0.11/NEWS 
new/python-subunit-0.0.12/NEWS
--- old/python-subunit-0.0.11/NEWS      2013-04-08 12:28:36.000000000 +0200
+++ new/python-subunit-0.0.12/NEWS      2013-05-13 00:47:48.000000000 +0200
@@ -5,6 +5,17 @@
 NEXT (In development)
 ---------------------
 
+0.0.12
+------
+
+BUG FIXES
+~~~~~~~~~
+
+* Subunit v2 packets with both file content and route code were not being
+  parsed correctly - they would incorrectly emit a parser error, due to trying
+  to parse the route code length from the first byes of the file content.
+  (Robert Collins, 1172815)
+
 0.0.11
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-subunit-0.0.11/PKG-INFO 
new/python-subunit-0.0.12/PKG-INFO
--- old/python-subunit-0.0.11/PKG-INFO  2013-04-08 12:41:38.000000000 +0200
+++ new/python-subunit-0.0.12/PKG-INFO  2013-05-13 00:50:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: python-subunit
-Version: 0.0.11
+Version: 0.0.12
 Summary: Python implementation of subunit test streaming protocol
 Home-page: http://launchpad.net/subunit
 Author: Robert Collins
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-subunit-0.0.11/python/subunit/__init__.py 
new/python-subunit-0.0.12/python/subunit/__init__.py
--- old/python-subunit-0.0.11/python/subunit/__init__.py        2013-04-08 
12:28:36.000000000 +0200
+++ new/python-subunit-0.0.12/python/subunit/__init__.py        2013-05-13 
00:48:15.000000000 +0200
@@ -160,7 +160,7 @@
 # If the releaselevel is 'final', then the tarball will be major.minor.micro.
 # Otherwise it is major.minor.micro~$(revno).
 
-__version__ = (0, 0, 11, 'final', 0)
+__version__ = (0, 0, 12, 'final', 0)
 
 PROGRESS_SET = 0
 PROGRESS_CUR = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-subunit-0.0.11/python/subunit/tests/test_test_protocol2.py 
new/python-subunit-0.0.12/python/subunit/tests/test_test_protocol2.py
--- old/python-subunit-0.0.11/python/subunit/tests/test_test_protocol2.py       
2013-04-08 12:28:36.000000000 +0200
+++ new/python-subunit-0.0.12/python/subunit/tests/test_test_protocol2.py       
2013-05-13 00:45:56.000000000 +0200
@@ -408,6 +408,14 @@
                     b'packet: claimed 63 bytes, 10 available'),
             ])
 
+    def test_route_code_and_file_content(self):
+        content = BytesIO()
+        subunit.StreamResultToBytes(content).status(
+            route_code='0', mime_type='text/plain', file_name='bar',
+            file_bytes=b'foo')
+        self.check_event(content.getvalue(), test_id=None, file_name='bar',
+            route_code='0', mime_type='text/plain', file_bytes=b'foo')
+
 
 def test_suite():
     loader = subunit.tests.TestUtil.TestLoader()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-subunit-0.0.11/python/subunit/v2.py 
new/python-subunit-0.0.12/python/subunit/v2.py
--- old/python-subunit-0.0.11/python/subunit/v2.py      2013-04-08 
12:28:36.000000000 +0200
+++ new/python-subunit-0.0.12/python/subunit/v2.py      2013-05-13 
00:46:19.000000000 +0200
@@ -423,6 +423,7 @@
                     raise ParseError('File content extends past end of packet: 
'
                         'claimed %d bytes, %d available' % (
                         content_length, len(file_bytes)))
+                pos += content_length
             else:
                 file_name = None
                 file_bytes = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-subunit-0.0.11/python_subunit.egg-info/PKG-INFO 
new/python-subunit-0.0.12/python_subunit.egg-info/PKG-INFO
--- old/python-subunit-0.0.11/python_subunit.egg-info/PKG-INFO  2013-04-08 
12:41:38.000000000 +0200
+++ new/python-subunit-0.0.12/python_subunit.egg-info/PKG-INFO  2013-05-13 
00:50:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: python-subunit
-Version: 0.0.11
+Version: 0.0.12
 Summary: Python implementation of subunit test streaming protocol
 Home-page: http://launchpad.net/subunit
 Author: Robert Collins

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to