diff options
author | MojoVampire <shadowranger+github@gmail.com> | 2020-03-03 18:50:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 18:50:17 (GMT) |
commit | 469325c30e147680543b2f5118b83fd95055a499 (patch) | |
tree | c10fd8f26059cb0e6caef9a7c081d324e4146969 /Lib/test/test_descr.py | |
parent | ae75a294352e9b9487f5dc8e88f068e7e6974dc2 (diff) | |
download | cpython-469325c30e147680543b2f5118b83fd95055a499.zip cpython-469325c30e147680543b2f5118b83fd95055a499.tar.gz cpython-469325c30e147680543b2f5118b83fd95055a499.tar.bz2 |
bpo-35712: Make using NotImplemented in a boolean context issue a deprecation warning (GH-13195)
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index d2e1218..96cc8de2 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -2526,9 +2526,9 @@ order (MRO) for bases """ except TypeError: pass - # Two essentially featureless objects, just inheriting stuff from - # object. - self.assertEqual(dir(NotImplemented), dir(Ellipsis)) + # Two essentially featureless objects, (Ellipsis just inherits stuff + # from object. + self.assertEqual(dir(object()), dir(Ellipsis)) # Nasty test case for proxied objects class Wrapper(object): |