# HG changeset patch
# User Robert Bradshaw <robertwb@math.washington.edu>
# Date 1248272041 25200
# Node ID 566f58be4f358e3cd9311641d21a7c3ecedf91be
# Parent  1708eb51fc57f7351374b46ab249ff361be94f75
[mq]: poly-int

diff -r 1708eb51fc57 -r 566f58be4f35 sage/rings/polynomial/polynomial_template.pxi
--- a/sage/rings/polynomial/polynomial_template.pxi	Tue Jul 21 13:18:44 2009 -0700
+++ b/sage/rings/polynomial/polynomial_template.pxi	Wed Jul 22 07:14:01 2009 -0700
@@ -353,7 +353,7 @@
             sage: int(x)
             Traceback (most recent call last):
             ...
-            TypeError: cannot coerce nonconstant polynomial to int
+            ValueError: Cannot coerce polynomial with degree 1 to integer.
 
             sage: int(P(1))
             1
