8000 Revert buggy test fix for locale independecce. · numpy/numpy@99f428e · GitHub
[go: up one dir, main page]

Skip to content

Commit 99f428e

Browse files
committed
< 8000 /div>
Revert buggy test fix for locale independecce.
1 parent a5ca79d commit 99f428e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/tests/test_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def _test_locale_independance(tp):
154154
else:
155155
locale.setlocale(locale.LC_NUMERIC, 'FRENCH')
156156

157-
assert_equal(locale.format("%f",tp(1.2)), locale.format("%f",float(1.2)),
157+
assert_equal(str(tp(1.2)), str(float(1.2)),
158158
err_msg='Failed locale test for type %s' % tp)
159159
finally:
160160
locale.setlocale(locale.LC_NUMERIC, locale=curloc)

0 commit comments

Comments
 (0)
0