summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pwd.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-04-14 18:31:00 (GMT)
committerGitHub <noreply@github.com>2020-04-14 18:31:00 (GMT)
commit1e1dbdf23f7a18f53a3257badc3541973831f2c4 (patch)
treeb63ec3c3262f3bb0ad313a1dd298a7e20c778851 /Lib/test/test_pwd.py
parent67b8a1f0f0f78ec38b8626fa9f5b2f5a55c17e15 (diff)
downloadcpython-1e1dbdf23f7a18f53a3257badc3541973831f2c4.zip
cpython-1e1dbdf23f7a18f53a3257badc3541973831f2c4.tar.gz
cpython-1e1dbdf23f7a18f53a3257badc3541973831f2c4.tar.bz2
bpo-32033: Fix test_pwd failures on Android (GH-19502)
(cherry picked from commit 96515e9f6785328c52ebc5d4ce60e0087a9adc2d) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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)