Skip to content

Commit

Permalink
Fix unittests on Python 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink committed May 20, 2018
1 parent 2c743df commit 9367822
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 9367822

Please sign in to comment.