Commits

Brett Cannon  committed 21edce0

Fix error in test of not comparing against 0 item of a list

  • Participants
  • Parent commits d37f131
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_strptime.py

     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")