[Python-checkins] cpython: Fix a failing test introduced as part of issue #27512
brett.cannon
python-checkins at python.org
Fri Jul 15 14:27:06 EDT 2016
https://hg.python.org/cpython/rev/bb7686a555cc
changeset: 102359:bb7686a555cc
user: Brett Cannon <brett at python.org>
date: Fri Jul 15 11:26:53 2016 -0700
summary:
Fix a failing test introduced as part of issue #27512
files:
Lib/test/test_os.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -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.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list