From: Brett Cannon Date: Fri, 15 Jul 2016 18:26:53 +0000 (-0700) Subject: Fix a failing test introduced as part of issue #27512 X-Git-Tag: v3.6.0a4~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33ed881f791c4ee9888eb1df6871129a94f9e6ee;p=python Fix a failing test introduced as part of issue #27512 --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index ecd2efb0e9..6493d76c9a 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -3164,9 +3164,8 @@ class TestPEP519(unittest.TestCase): 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.