Ticket #343 (new enhancement)

Opened 3 months ago

Last modified 2 months ago

Refactor the test suite to be python implementation independent

Reported by: nick Owned by: nick
Priority: minor Milestone: 0.5
Component: Testing Version: 0.3.1
Keywords: Cc:

Description (last modified by thijs) (diff)

An example from pyamf.tests.test_amf3. EncoderTestCase.test_dict:

self._run([
    ({'a': u'a', 'b': u'b', 'c': u'c', 'd': u'd'}, '\n\x0b\x01\x03a\x06\x00\x03c\x06\x02\x03b\x06\x04\x03d\x06\x06\x01')])

The test is specific to the current cPython implementation and other implementations such as Jython fail this test because of the internal ordering of the dict.

A test utility will need to be built that takes the pieces of the amf fragment and checks that against a list. The test cases will need to be altered to fit into this new api.

Change History

comment:1 Changed 3 months ago by thijs

  • description modified (diff)

add reference to jython ticket

comment:2 Changed 2 months ago by thijs

  • milestone changed from 0.4 to 0.5
Note: See TracTickets for help on using tickets.