From 183cb15943efb49009510d334f01f542a52822bb Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 25 Jun 2012 12:33:37 -0700 Subject: [PATCH] Convert dictionary comprehension to dict(generator) so it'll work with 2.6 --- htsworkflow/submission/test/test_condorfastq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] -- 2.30.2