mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
Fix a failing test introduced as part of issue #27512
This commit is contained in:
parent
896e87a99c
commit
33ed881f79
1 changed files with 1 additions and 2 deletions
|
@ -3164,9 +3164,8 @@ class TestPEP519(unittest.TestCase):
|
||||||
c.__fspath__ = 1
|
c.__fspath__ = 1
|
||||||
self.assertRaises(TypeError, self.fspath, c())
|
self.assertRaises(TypeError, self.fspath, c())
|
||||||
# __fspath__ raises an exception.
|
# __fspath__ raises an exception.
|
||||||
c.__fspath__ = lambda self: self.__not_exist
|
|
||||||
self.assertRaises(ZeroDivisionError, self.fspath,
|
self.assertRaises(ZeroDivisionError, self.fspath,
|
||||||
self.PathLike(ZeroDivisionError))
|
self.PathLike(ZeroDivisionError()))
|
||||||
|
|
||||||
# Only test if the C version is provided, otherwise TestPEP519 already tested
|
# Only test if the C version is provided, otherwise TestPEP519 already tested
|
||||||
# the pure Python implementation.
|
# the pure Python implementation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue