[tests] fix: test breaking when system LANG=C

This commit is contained in:
Vinicius Moreira
2022-10-25 17:45:01 -03:00
parent 3d267ff3d1
commit 4917a7f017

View File

@@ -8,7 +8,7 @@ class GetHumanSizeStrTest(TestCase):
def setUp(self): def setUp(self):
try: try:
locale.setlocale(locale.LC_NUMERIC, None) locale.setlocale(locale.LC_NUMERIC, "C")
except: except:
print("Error: could not set locale.LC_NUMERIC to None") print("Error: could not set locale.LC_NUMERIC to None")