#6206: fix test__locale.
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py
index 385d049..0f67731 100644
--- a/Lib/test/test__locale.py
+++ b/Lib/test/test__locale.py
@@ -84,8 +84,7 @@
                 setlocale(LC_NUMERIC, loc)
             except Error:
                 continue
-            for li, lc in ("decimal_point",
-                            "thousands_sep"):
+            for lc in ("decimal_point", "thousands_sep"):
                 self.numeric_tester('localeconv', localeconv()[lc], lc, loc)
 
     @unittest.skipUnless(nl_langinfo, "nl_langinfo is not available")