Skip to content

Commit 5cf7c50

Browse files
michaelmess-detridge
authored andcommitted
Corrected test case broken for locales that uses , instead of . for decimal numbers in human readable form.
1 parent ad3bfab commit 5cf7c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testsuite/output-options_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def out(*args, want_rc=0, env=None, text=True):
108108
plain = out('-a', '--stats', f'{src}/', f'{TODIR}/').stdout
109109
rmtree(TODIR)
110110
human = out('-a', '-h', '--stats', f'{src}/', f'{TODIR}/').stdout
111-
suffix_re = r'Total file size: [\d.]+[KMG]'
111+
suffix_re = r'Total file size: [\d.,]+[KMG]'
112112
if not re.search(suffix_re, human):
113113
test_fail(f"-h did not use a human-readable unit suffix:\n{human}")
114114
if re.search(suffix_re, plain):

0 commit comments

Comments
 (0)