Skip to content

test_wrap_around sometimes fails on python 3.4 #3079

Closed

Description

@hmaarrfk

Description

In developing #3072, I found that test_wrap_around.py sometimes fail on python3.4.
I've been trying to reproduce this, but it is generally difficult.

tests/test_unwrap.py::test_wrap_around[2-0] FAILED                                     [ 83%]
tests/test_unwrap.py::test_wrap_around[2-1] PASSED                                   [ 84%]
tests/test_unwrap.py::test_wrap_around[3-0] PASSED                                   [ 86%]
tests/test_unwrap.py::test_wrap_around[3-1] PASSED                                   [ 88%]
tests/test_unwrap.py::test_wrap_around[3-2] PASSED 

Way to reproduce

The easiest way is probably to use my branch since it passes many other tests than the one currently on scikit-image.
Specifically you should use bugfix_pass_test_dont_skip_test_wrap_around which actually runs the test instead of skipping it in python 3.4

git clone [email protected]:hmaarrfk/scikit-image.git scikit-image-34
cd scikit-image-34
git checkout bugfix_pass_test_dont_skip_test_wrap_around
pipenv --python 3.4
pipenv install --skip-lock -r 'requirements/test.txt'
pipenv install --skip-lock -r 'requirements/build.txt'
pipenv install --skip-lock -r 'requirements/docs.txt'
pipenv run python setup develop.py
pipenv run pytest -v

To specifically run the test that fails

pipenv run pytest -v skimage/restoration/tests/test_unwrap.py

and just press "up arrow"+"enter" a few times until the test fails.

Activity

  1. changed the title [-]`test_wrap_around.py` sometimes fails on python 3.4[/-] [+]`test_wrap_around` sometimes fails on python 3.4[/+] on May 15, 2018
  2. added a commit that references this issue on May 15, 2018
  3. hmaarrfk commented on May 15, 2018

    @hmaarrfk
    MemberAuthor

    And hopefully one of these travis builds will be able to reproduce the issue:

  4. hmaarrfk commented on May 15, 2018

    @hmaarrfk
    MemberAuthor

    Reference to the 3.4 changelog

    On my fedora machine, I was running 3.4.7, not 3.4.8. Don't know why Fedora 27 is behind.

  5. jni commented on May 17, 2018

    @jni
    Member

    This is super weird. If you can make it fail on my machine, I recommend you run pytest with --pdb. This will drop you into a python debugger prompt when the test fails, and you can nose around to see if anything seems off.

    OR, come to think of it, we can just close this, since we are dropping 3.4 support after 0.14! 😂 Let me know what you'd prefer to do!

  6. added a commit that references this issue on May 18, 2018
  7. hmaarrfk commented on May 18, 2018

    @hmaarrfk
    MemberAuthor

    Just close it. I'm too lazy to make a virtual env.

  8. grlee77 commented on Jun 13, 2022

    @grlee77
    Contributor

    This turned up again today, but on a PyPy 3.7 build in the feedstock: conda-forge/scikit-image-feedstock#91 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions