update skip reason
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index e0c59fd..d259515 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1435,7 +1435,7 @@
 
     @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)