Created
June 15, 2011 18:28
-
-
Save asmeurer/1027747 to your computer and use it in GitHub Desktop.
ask key problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sympy/assumptions/tests/test_query.py b/sympy/assumptions/tests/test_query.py | |
index 516d0d7..ccb09fe 100644 | |
--- a/sympy/assumptions/tests/test_query.py | |
+++ b/sympy/assumptions/tests/test_query.py | |
@@ -982,6 +982,7 @@ def Symbol(expr, assumptions): | |
assert ask(Q.my_key(x)) == True | |
assert ask(Q.my_key(x+1)) == None | |
remove_handler('my_key', MyAskHandler) | |
+ raises(AttributeError, "ask(Q.my_key(x))") | |
def test_type_extensibility(): | |
"""test that new types can be added to the ask system at runtime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment