diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-10-25 09:36:47 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-10-25 09:45:24 +0300 |
commit | 6eda6c243d60466bdad66b46cdcbd6293fb4424f (patch) | |
tree | 9fcb61ca9b66425b3cd473aa5301e9733259a37b /contrib/python/zope.interface/py3/zope/interface/tests/test_advice.py | |
parent | 71cfb7652c50b626f60cf145b918e4e91acc86d0 (diff) | |
download | ydb-6eda6c243d60466bdad66b46cdcbd6293fb4424f.tar.gz |
Intermediate changes
commit_hash:7a203c6d0c248df6f8cf32d7de94727084be033c
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.py | 12 |
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 = """\ |