Index: Lib/test/test_posix.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_posix.py,v retrieving revision 1.4 diff -c -r1.4 test_posix.py *** Lib/test/test_posix.py 23 Feb 2003 22:12:24 -0000 1.4 --- Lib/test/test_posix.py 6 Mar 2003 23:58:32 -0000 *************** *** 43,49 **** for name in NO_ARG_FUNCTIONS: posix_func = getattr(posix, name, None) if posix_func is not None: ! posix_func() self.assertRaises(TypeError, posix_func, 1) def test_statvfs(self): --- 43,55 ---- for name in NO_ARG_FUNCTIONS: posix_func = getattr(posix, name, None) if posix_func is not None: ! try: ! posix_func() ! except OSError: ! # ignore OSError from getlogin ! # this can happen if there's a problem with utmp/wtmp ! if name != 'getlogin': ! raise self.assertRaises(TypeError, posix_func, 1) def test_statvfs(self):