diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-08 13:52:27 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-08 13:52:27 -0500 |
commit | c9843bb395b37c67c14b301a57bddbc730bfce48 (patch) | |
tree | 7046eb854e1b41bf0009e0f3c4156e04f6116963 /test/base/test_utils.py | |
parent | 63bb4ec5ab75ffdbec0502f82752328948f6fef5 (diff) | |
download | sqlalchemy-c9843bb395b37c67c14b301a57bddbc730bfce48.tar.gz |
put fails for these various things that don't work on pypy, not sure what approach
should be taken
Diffstat (limited to 'test/base/test_utils.py')
-rw-r--r-- | test/base/test_utils.py | 8 |
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', |