update skip reason

This commit is contained in:
Philip Jenvey 2012-02-29 16:21:25 -08:00
parent e308b7c0c0
commit d7aff2d696
1 changed files with 1 additions and 1 deletions

View File

@ -1435,7 +1435,7 @@ class DeviceEncodingTests(unittest.TestCase):
@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)