summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-15 18:26:53 (GMT)
committerBrett Cannon <brett@python.org>2016-07-15 18:26:53 (GMT)
commit33ed881f791c4ee9888eb1df6871129a94f9e6ee (patch)
tree426fc1ca43435ce4e2ddde9c5323cec7f6258ec9 /Lib
parent896e87a99c8b889315a0d72e864360ec575c6b5e (diff)
downloadcpython-33ed881f791c4ee9888eb1df6871129a94f9e6ee.zip
cpython-33ed881f791c4ee9888eb1df6871129a94f9e6ee.tar.gz
cpython-33ed881f791c4ee9888eb1df6871129a94f9e6ee.tar.bz2
Fix a failing test introduced as part of issue #27512
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index ecd2efb..6493d76 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.