update skip reason

This commit is contained in:
Philip Jenvey 2012-02-29 16:21:25 -08:00
parent e308b7c0c0
commit d7aff2d696

View file

@ -1435,7 +1435,7 @@ def test_bad_fd(self):
@unittest.skipUnless(os.isatty(0) and (sys.platform.startswith('win') or
(hasattr(locale, 'nl_langinfo') and hasattr(locale, 'CODESET'))),
'test requires either Windows or nl_langinfo(CODESET)')
'test requires a tty and either Windows or nl_langinfo(CODESET)')
def test_device_encoding(self):
encoding = os.device_encoding(0)
self.assertIsNotNone(encoding)