Skip to content

Instantly share code, notes, and snippets.

@asmeurer
Created June 15, 2011 18:28
Show Gist options
  • Save asmeurer/1027747 to your computer and use it in GitHub Desktop.
Save asmeurer/1027747 to your computer and use it in GitHub Desktop.
ask key problem
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