summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pwd.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-04-14 18:11:46 (GMT)
committerGitHub <noreply@github.com>2020-04-14 18:11:46 (GMT)
commit96515e9f6785328c52ebc5d4ce60e0087a9adc2d (patch)
tree5cc8a6a604d97f5093ab4bb6ecd0b67dda486803 /Lib/test/test_pwd.py
parent675d9a3d7afc767a2818c84da7ba4bf4181dcf26 (diff)
downloadcpython-96515e9f6785328c52ebc5d4ce60e0087a9adc2d.zip
cpython-96515e9f6785328c52ebc5d4ce60e0087a9adc2d.tar.gz
cpython-96515e9f6785328c52ebc5d4ce60e0087a9adc2d.tar.bz2
bpo-32033: Fix test_pwd failures on Android (GH-19502)
Diffstat (limited to 'Lib/test/test_pwd.py')
-rw-r--r--Lib/test/test_pwd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index c13a7c9..85740ce 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -21,7 +21,7 @@ class PwdTest(unittest.TestCase):
self.assertEqual(e[3], e.pw_gid)
self.assertIsInstance(e.pw_gid, int)
self.assertEqual(e[4], e.pw_gecos)
- self.assertIsInstance(e.pw_gecos, str)
+ self.assertIn(type(e.pw_gecos), (str, type(None)))
self.assertEqual(e[5], e.pw_dir)
self.assertIsInstance(e.pw_dir, str)
self.assertEqual(e[6], e.pw_shell)