Skip to content

How to run the tests in a convenient way? #139

@lesteve

Description

@lesteve

Sorry if i haved missed it somewhere in the documentation, but how do you run the dill tests in a convenient way? I am used to projects where nosetests is used but trying with dill yields plenty of errors.

Here is what I did:

git clone https://github.com/uqfoundation/dill
cd dill
python setup.py build
nosetests

While I am at it, nosetests --with-doctest shows some failing doctests.

Would you be interested in contributions that make the tests more nosetests friendly?

I saw that there were some test files in dill/tests that you could run directly with python but it is unclear whether a test failure is expected or not. For example, here is the output I get with master for tests/test_objects.py:

❯ python tests/test_objects.py
fails: ListIteratorType <type 'listiterator'>
fails: TupleIteratorType <type 'tupleiterator'>
fails: XRangeIteratorType <type 'rangeiterator'>
fails: CycleType <type 'itertools.cycle'>
fails: PermutationsType <type 'itertools.permutations'>
fails: CombinationsType <type 'itertools.combinations'>
fails: RepeatType <type 'itertools.repeat'>
fails: CompressType <type 'itertools.compress'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions