Skip to content
Browse files

Tests should expect the behavior of _zope_interface_coptimizations.so.

When _zope_interface_coptimizations.so is removed, forcing the pure
Python implementation, these two tests raise exceptions, but when the
C optimizations are in place they just act like the interfaces aren't
provided.
  • Loading branch information...
1 parent b376675 commit 364cfe4563d1f154f15b307b9768a7a97bc58d8d @rpatterson committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 experimental/broken/interface.txt
View
6 experimental/broken/interface.txt
@@ -48,11 +48,9 @@ provide that interface will fail.
Traceback (most recent call last):
TypeError: ("'type' object is not iterable", <function Provides at 0x...>, (<class 'experimental.broken.tests.Foo'>, <class 'experimental.broken.tests.IFoo'>))
>>> IFoo.providedBy(foo_two)
- Traceback (most recent call last):
- TypeError: ("'type' object is not iterable", <function Provides at 0x...>, (<class 'experimental.broken.tests.Foo'>, <class 'experimental.broken.tests.IFoo'>))
+ False
>>> interfaces.IBroken.providedBy(foo_two)
- Traceback (most recent call last):
- TypeError: ("'type' object is not iterable", <function Provides at 0x...>, (<class 'experimental.broken.tests.Foo'>, <class 'experimental.broken.tests.IFoo'>))
+ False
When the patches are applied, the object behaves properly.

0 comments on commit 364cfe4

Please sign in to comment.
Something went wrong with that request. Please try again.