Sha256: a34253571283dd52aceb6a501be2b1af3708b1594af1c5774179622e629a570a

Contents?: true

Size: 592 Bytes

Versions: 33

Compression:

Stored size: 592 Bytes

Contents

from unittest import TestCase

from simplejson import encoder, scanner

def has_speedups():
    return encoder.c_make_encoder is not None

class TestDecode(TestCase):
    def test_make_scanner(self):
        if not has_speedups():
            return
        self.assertRaises(AttributeError, scanner.c_make_scanner, 1)

    def test_make_encoder(self):
        if not has_speedups():
            return
        self.assertRaises(TypeError, encoder.c_make_encoder,
            None,
            "\xCD\x7D\x3D\x4E\x12\x4C\xF9\x79\xD7\x52\xBA\x82\xF2\x27\x4A\x7D\xA0\xCA\x75",
            None)

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
pygments.rb-1.2.1 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-1.2.0 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-1.1.2 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-1.1.1 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-1.1.0 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-1.0.0 vendor/simplejson/simplejson/tests/test_speedups.py
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.6.3 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.6.2 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.6.1 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.6.0 vendor/simplejson/simplejson/tests/test_speedups.py
mortar-pygments.rb-0.5.7 vendor/simplejson/simplejson/tests/test_speedups.py
mortar-pygments.rb-0.5.6 vendor/simplejson/simplejson/tests/test_speedups.py
mortar-pygments.rb-0.5.5 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-jruby-0.5.4.2 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-jruby-0.5.4.1 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-jruby-0.5.4 vendor/simplejson/simplejson/tests/test_speedups.py
gitlab-pygments.rb-0.5.4 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.5.4 vendor/simplejson/simplejson/tests/test_speedups.py
pygments.rb-0.5.2 vendor/simplejson/simplejson/tests/test_speedups.py