diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index dcde2c3c873..77319d97b41 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -91,7 +91,7 @@ def test_date_time(self): def test_lang(self): # Make sure lang is set self.failUnless(self.LT_ins.lang in (locale.getdefaultlocale()[0], - locale.getlocale(locale.LC_TIME), + locale.getlocale(locale.LC_TIME)[0], ''), "Setting of lang failed")