diff options
| author | robot-piglet <[email protected]> | 2025-10-10 22:17:42 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-10-10 22:28:05 +0300 |
| commit | 90b8dc330c9dae77ba084e2199f2b85793407372 (patch) | |
| tree | 1dc781602be51655434becb2e02dd4bd966a3fc6 /contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py | |
| parent | 5cf77d1156cbd68ded4afa6b0255cd6f9971b807 (diff) | |
Intermediate changes
commit_hash:d61540abee23f6613ae4792d93d214c70f277973
Diffstat (limited to 'contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py')
| -rw-r--r-- | contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py b/contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py index c684d7c61e2..2abf0af95af 100644 --- a/contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py +++ b/contrib/python/zope.interface/py3/zope/interface/tests/test_declarations.py @@ -26,6 +26,7 @@ from __tests__.tests.test_interface import \ # pylint:disable=inherit-non-class,too-many-lines,protected-access # pylint:disable=blacklisted-name,attribute-defined-outside-init +IBar = InterfaceClass('IBar') IFoo = InterfaceClass('IFoo') @@ -1373,10 +1374,9 @@ class TestProvidesClassRepr(unittest.TestCase): from zope.interface.declarations import alsoProvides from zope.interface.declarations import directlyProvides from __tests__.tests import dummy + from __tests__.tests.test_declarations import IBar from __tests__.tests.test_declarations import IFoo - IBar = InterfaceClass('IBar') - orig_provides = dummy.__provides__ # pylint:disable=no-member del dummy.__provides__ # pylint:disable=no-member self.addCleanup(setattr, dummy, '__provides__', orig_provides) @@ -1401,7 +1401,7 @@ class TestProvidesClassRepr(unittest.TestCase): # If we make this module also provide IFoo and IBar, then the repr # lists both names. - my_module = sys.modules[__name__] + from __tests__.tests import test_declarations as my_module assert not hasattr(my_module, '__provides__') directlyProvides(my_module, IFoo, IBar) |
