aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-10-28 20:34:11 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-10-28 20:34:11 +0000
commitef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce (patch)
tree1f2fd4e4d9e585da35937b42fbda5f854af04728 /contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py
parent37ae9cc90160b53eb0e22021c47b3996a01cd656 (diff)
parente3c8507a3d1cb090278f211232ddfde3bedc54d4 (diff)
downloadydb-ef9875b11a33dbd25e92bc6b4cf692c18c9ba0ce.tar.gz
Merge branch 'rightlib' into mergelibs-241028-2033
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py')
-rw-r--r--contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py b/contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py
index 5d5f0218b0..e439b44779 100644
--- a/contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py
+++ b/contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py
@@ -37,7 +37,7 @@ class FrameInfoTest(unittest.TestCase):
f_locals, f_globals) = advisory_testing.moduleLevelFrameInfo
self.assertEqual(kind, "module")
for d in module.__dict__, f_locals, f_globals:
- self.assertTrue(d is advisory_testing.my_globals)
+ self.assertIs(d, advisory_testing.my_globals)
def test_w_class(self):
from . import advisory_testing
@@ -48,7 +48,7 @@ class FrameInfoTest(unittest.TestCase):
self.assertEqual(kind, "class")
for d in module.__dict__, f_globals:
- self.assertTrue(d is advisory_testing.my_globals)
+ self.assertIs(d, advisory_testing.my_globals)
def test_inside_function_call(self):
from zope.interface.advice import getFrameInfo
@@ -60,7 +60,7 @@ class FrameInfoTest(unittest.TestCase):
self.assertEqual(f_locals, locals())
for d in module.__dict__, f_globals:
- self.assertTrue(d is globals())
+ self.assertIs(d, globals())
def test_inside_exec(self):
from zope.interface.advice import getFrameInfo
@@ -68,9 +68,9 @@ class FrameInfoTest(unittest.TestCase):
_locals = {}
exec(_FUNKY_EXEC, _globals, _locals)
self.assertEqual(_locals['kind'], "exec")
- self.assertTrue(_locals['f_locals'] is _locals)
- self.assertTrue(_locals['module'] is None)
- self.assertTrue(_locals['f_globals'] is _globals)
+ self.assertIs(_locals['f_locals'], _locals)
+ self.assertIsNone(_locals['module'])
+ self.assertIs(_locals['f_globals'], _globals)
_FUNKY_EXEC = """\