Author: Brian Kearns <[email protected]>
Branch:
Changeset: r70019:10739383a275
Date: 2014-03-17 11:26 -0400
http://bitbucket.org/pypy/pypy/changeset/10739383a275/
Log: unskip this test
diff --git a/rpython/annotator/test/test_annrpython.py
b/rpython/annotator/test/test_annrpython.py
--- a/rpython/annotator/test/test_annrpython.py
+++ b/rpython/annotator/test/test_annrpython.py
@@ -2872,7 +2872,6 @@
py.test.raises(Exception, a.build_types, fun, [s_nonneg, int])
def test_sig_bug(self):
- py.test.skip("_annenforceargs_ does not work for default arguments")
def g(x, y=5):
return y == 5
g._annenforceargs_ = (int, int)
@@ -2880,7 +2879,8 @@
return g(x)
a = self.RPythonAnnotator()
s = a.build_types(fun, [int])
- assert not s.is_constant()
+ assert s.knowntype is bool
+ assert s.is_constant()
def test_sig_list(self):
def g(buf):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit