[pypy-svn] pypy default: mark json tests that check for C functions as implementation dependent
Bobby Impollonia
commits-noreply at bitbucket.org
Fri Jan 28 13:33:18 CET 2011
Author: Bobby Impollonia <bobbyi at gmail.com>
Branch:
Changeset: r41422:65f8ca6578c0
Date: 2011-01-27 07:59 -0800
http://bitbucket.org/pypy/pypy/changeset/65f8ca6578c0/
Log: mark json tests that check for C functions as implementation
dependent
diff --git a/lib-python/modified-2.7.0/json/tests/test_speedups.py b/lib-python/modified-2.7.0/json/tests/test_speedups.py
--- a/lib-python/modified-2.7.0/json/tests/test_speedups.py
+++ b/lib-python/modified-2.7.0/json/tests/test_speedups.py
@@ -1,22 +1,27 @@
import decimal
from unittest import TestCase
+from test import test_support
from json import decoder, encoder, scanner
class TestSpeedups(TestCase):
+ @test_support.impl_detail()
def test_scanstring(self):
self.assertEquals(decoder.scanstring.__module__, "_json")
self.assertTrue(decoder.scanstring is decoder.c_scanstring)
+ @test_support.impl_detail()
def test_encode_basestring_ascii(self):
self.assertEquals(encoder.encode_basestring_ascii.__module__, "_json")
self.assertTrue(encoder.encode_basestring_ascii is
encoder.c_encode_basestring_ascii)
class TestDecode(TestCase):
+ @test_support.impl_detail()
def test_make_scanner(self):
self.assertRaises(AttributeError, scanner.c_make_scanner, 1)
+ @test_support.impl_detail()
def test_make_encoder(self):
self.assertRaises(TypeError, encoder.c_make_encoder,
None,
diff --git a/lib-python/modified-2.7.0/json/tests/test_scanstring.py b/lib-python/modified-2.7.0/json/tests/test_scanstring.py
--- a/lib-python/modified-2.7.0/json/tests/test_scanstring.py
+++ b/lib-python/modified-2.7.0/json/tests/test_scanstring.py
@@ -1,6 +1,7 @@
import sys
import decimal
from unittest import TestCase
+from test import test_support
import json
import json.decoder
@@ -9,6 +10,7 @@
def test_py_scanstring(self):
self._test_scanstring(json.decoder.py_scanstring)
+ @test_support.impl_detail()
def test_c_scanstring(self):
self._test_scanstring(json.decoder.c_scanstring)
More information about the Pypy-commit
mailing list