From: Diane Trout Date: Mon, 25 Jun 2012 19:33:37 +0000 (-0700) Subject: Convert dictionary comprehension to dict(generator) so it'll work with 2.6 X-Git-Tag: v0.5.5~7 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=183cb15943efb49009510d334f01f542a52822bb Convert dictionary comprehension to dict(generator) so it'll work with 2.6 --- diff --git a/htsworkflow/submission/test/test_condorfastq.py b/htsworkflow/submission/test/test_condorfastq.py index 27b9997..899a447 100644 --- a/htsworkflow/submission/test/test_condorfastq.py +++ b/htsworkflow/submission/test/test_condorfastq.py @@ -311,7 +311,7 @@ class TestCondorFastq(unittest.TestCase): self.failUnlessEqual(filename, expected['sources'][i]) - split_test = { x['target']: x for x in + split_test = dict((( x['target'], x) for x in [{'sources': [u'11154_NoIndex_L003_R1_001.fastq.gz', u'11154_NoIndex_L003_R1_002.fastq.gz'], 'pyscript': 'desplit_fastq.pyc', @@ -320,7 +320,7 @@ class TestCondorFastq(unittest.TestCase): u'11154_NoIndex_L003_R2_002.fastq.gz'], 'pyscript': 'desplit_fastq.pyc', 'target': u'11154_C02F9ACXX_c202_l3_r2.fastq'}] - } + )) for arg in split: _, target = os.path.split(arg['target']) pyscript = split_test[target]['pyscript']