changeset: 102359:bb7686a555cc user: Brett Cannon date: Fri Jul 15 11:26:53 2016 -0700 files: Lib/test/test_os.py description: Fix a failing test introduced as part of issue #27512 diff -r 46da639f7114 -r bb7686a555cc Lib/test/test_os.py --- a/Lib/test/test_os.py Fri Jul 15 10:59:11 2016 -0700 +++ b/Lib/test/test_os.py Fri Jul 15 11:26:53 2016 -0700 @@ -3164,9 +3164,8 @@ c.__fspath__ = 1 self.assertRaises(TypeError, self.fspath, c()) # __fspath__ raises an exception. - c.__fspath__ = lambda self: self.__not_exist self.assertRaises(ZeroDivisionError, self.fspath, - self.PathLike(ZeroDivisionError)) + self.PathLike(ZeroDivisionError())) # Only test if the C version is provided, otherwise TestPEP519 already tested # the pure Python implementation.