summaryrefslogtreecommitdiff
path: root/test/base/test_utils.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-08 21:30:22 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-03-08 21:30:22 -0500
commit2406689ebade93e59b562f7188e641b4e774568c (patch)
treeb1a7774d0c33366a873370b3e107d731bd5a535a /test/base/test_utils.py
parent63bb4ec5ab75ffdbec0502f82752328948f6fef5 (diff)
downloadsqlalchemy-pr/77.tar.gz
Moved speedups to a separate module. To include the speedups, require sqlalchemy[speedups].pr/77
Diffstat (limited to 'test/base/test_utils.py')
-rw-r--r--test/base/test_utils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/base/test_utils.py b/test/base/test_utils.py
index 19b3aa357..4a53aa54f 100644
--- a/test/base/test_utils.py
+++ b/test/base/test_utils.py
@@ -1393,7 +1393,7 @@ class ArgInspectionTest(fixtures.TestBase):
(['self', 'x', 'y'], None, 'kw', None)
)
- @fails_if(lambda: util.pypy, "pypy inspects datetime.now correctly")
+ @fails_if(lambda: util.pypy, "pypy returns plain *arg, **kw")
def test_callable_argspec_py_builtin(self):
import datetime
assert_raises(
@@ -1401,6 +1401,7 @@ class ArgInspectionTest(fixtures.TestBase):
get_callable_argspec, datetime.datetime.now
)
+ @fails_if(lambda: util.pypy, "pypy returns plain *arg, **kw")
def test_callable_argspec_obj_init(self):
assert_raises(
TypeError,
@@ -1472,6 +1473,7 @@ class ArgInspectionTest(fixtures.TestBase):
(['x', 'y'], None, None, None)
)
+ @fails_if(lambda: util.pypy, "pypy returns plain *arg, **kw")
def test_callable_argspec_partial(self):
from functools import partial
def foo(x, y, z, **kw):
@@ -1600,6 +1602,8 @@ class TestFormatArgspec(fixtures.TestBase):
'apply_kw': 'a=a, b=b', 'apply_pos': 'a, b'},
grouped=False)
+ @testing.fails_if(lambda: util.pypy,
+ "pypy doesn't report O.__init__ as object.__init__")
def test_init_grouped(self):
object_spec = {
'args': '(self)', 'self_arg': 'self',
@@ -1615,6 +1619,8 @@ class TestFormatArgspec(fixtures.TestBase):
self._test_init(None, object_spec, wrapper_spec, custom_spec)
self._test_init(True, object_spec, wrapper_spec, custom_spec)
+ @testing.fails_if(lambda: util.pypy,
+ "pypy doesn't report O.__init__ as object.__init__")
def test_init_bare(self):
object_spec = {
'args': 'self', 'self_arg': 'self',