Skip to content

Commit

Permalink
Merge pull request #123 from fniessink/fix-unittests
Browse files Browse the repository at this point in the history
Fix unittests on Python 3.6.
  • Loading branch information
bw2 authored Jan 13, 2019
2 parents a821c8e + 9367822 commit 206fd8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_configargparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def testBasicCase2(self, use_groups=False):

if not use_groups:
self.assertRegex(self.format_help(),
'usage: .* \[-h\] --genome GENOME \[-v\] -g MY_CFG_FILE'
' \[-d DBSNP\]\s+\[-f FRMT\]\s+vcf \[vcf ...\]\n\n' +
'usage: .* \[-h\] --genome GENOME \[-v\] -g MY_CFG_FILE\n?'
'\s+\[-d DBSNP\]\s+\[-f FRMT\]\s+vcf \[vcf ...\]\n\n' +
9*'(.+\s+)'+ # repeated 8 times because .+ matches atmost 1 line
'positional arguments:\n'
' vcf \s+ Variant file\(s\)\n\n'
Expand All @@ -247,8 +247,8 @@ def testBasicCase2(self, use_groups=False):
' -f FRMT, --format FRMT\s+\[env var: OUTPUT_FORMAT\]\n')
else:
self.assertRegex(self.format_help(),
'usage: .* \[-h\] --genome GENOME \[-v\] -g MY_CFG_FILE'
' \[-d DBSNP\]\s+\[-f FRMT\]\s+vcf \[vcf ...\]\n\n'+
'usage: .* \[-h\] --genome GENOME \[-v\] -g MY_CFG_FILE\n?'
'\s+\[-d DBSNP\]\s+\[-f FRMT\]\s+vcf \[vcf ...\]\n\n'+
9*'.+\s+'+ # repeated 8 times because .+ matches atmost 1 line
'positional arguments:\n'
' vcf \s+ Variant file\(s\)\n\n'
Expand Down

0 comments on commit 206fd8a

Please sign in to comment.