diff --git a/tests/test_configargparse.py b/tests/test_configargparse.py index 3df3b91..b081e99 100644 --- a/tests/test_configargparse.py +++ b/tests/test_configargparse.py @@ -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' @@ -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'