← Back to team overview

testtools-dev team mailing list archive

[Merge] lp:~benji/testtools/fix-python-3-compatability into lp:testtools

 

Benji York has proposed merging lp:~benji/testtools/fix-python-3-compatability into lp:testtools.

Requested reviews:
  testtools committers (testtools-committers)

For more details, see:
https://code.launchpad.net/~benji/testtools/fix-python-3-compatability/+merge/103152

Restore Python 3 compatibility by avoiding the use of a beautiful Python feature that was removed in Python 3.
-- 
https://code.launchpad.net/~benji/testtools/fix-python-3-compatability/+merge/103152
Your team testtools developers is subscribed to branch lp:testtools.
=== modified file 'testtools/testresult/real.py'
--- testtools/testresult/real.py	2012-04-19 12:08:12 +0000
+++ testtools/testresult/real.py	2012-04-23 18:54:21 +0000
@@ -483,7 +483,8 @@
                 self._global_tags, (new_tags, gone_tags))
 
 
-def _merge_tags(existing, (new_tags, gone_tags)):
+def _merge_tags(existing, tags):
+    new_tags, gone_tags = tags
     result_new = set(existing[0])
     result_gone = set(existing[1])
     result_new.update(new_tags)


Follow ups