gh-112192: Increase the trace module coverage precision to one decimal (#126972)

This commit is contained in:
RUANG (James Roy) 2024-12-04 06:33:13 +08:00 committed by GitHub
parent dabcecfd6d
commit 12397a5781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -1138,7 +1138,7 @@ class ArgsTestCase(BaseTestCase):
output = self.run_tests("--coverage", test)
self.check_executed_tests(output, [test], stats=1)
regex = (r'lines +cov% +module +\(path\)\n'
r'(?: *[0-9]+ *[0-9]{1,2}% *[^ ]+ +\([^)]+\)+)+')
r'(?: *[0-9]+ *[0-9]{1,2}\.[0-9]% *[^ ]+ +\([^)]+\)+)+')
self.check_line(output, regex)
def test_wait(self):