Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_open_notebook fails when running tests twice in a row #163

Closed
jitseniesen opened this issue Aug 27, 2018 · 0 comments
Closed

test_open_notebook fails when running tests twice in a row #163

jitseniesen opened this issue Aug 27, 2018 · 0 comments
Assignees
Milestone

Comments

@jitseniesen
Copy link
Member

Running the tests locally seems fine when you run them once, but when running them a second time, test_open_notebook fails with a FileExistsError:

    @flaky(max_runs=3)
    def test_open_notebook(qtbot):
        """Test that a notebook can be opened from a non-ascii directory."""
        # Move the test file to non-ascii directory
        test_notebook = osp.join(LOCATION, 'test.ipynb')
        test_notebook_non_ascii = osp.join(LOCATION, u'äöüß', 'test.ipynb')
>       os.mkdir(os.path.join(LOCATION, u'äöüß'))
E       FileExistsError: [Errno 17] File exists: '/home/jitse/misc/spyder-notebook/spyder_notebook/tests/äöüß'

spyder_notebook/tests/test_plugin.py:163: FileExistsError

The first test run creates this file, which interferes with the second test run. This does not affect the CI runs because the CI servers delete the environment after every run.

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

No branches or pull requests

1 participant