Skip to content

document how to run tests locally without coverage and CI tools #385

Closed

Description

@den-run-ai
C:\Python\pythonnet>python src\tests\runtests.py
Traceback (most recent call last):
  File "src\tests\runtests.py", line 11, in <module>
    from ._compat import input
SystemError: Parent module '' not loaded, cannot perform relative import

This used to work before.

Activity

  1. changed the title [-]document how to run tests locally with coverage and CI tools[/-] [+]document how to run tests locally without coverage and CI tools[/+] on Feb 16, 2017
  2. vmuriart commented on Feb 16, 2017

    @vmuriart
    Contributor

    run pytest

  3. vmuriart commented on Feb 16, 2017

    @vmuriart
    Contributor

    or python -m pytest

  4. den-run-ai commented on Feb 16, 2017

    @den-run-ai
    ContributorAuthor

    nice format from pytest:

    image

  5. den-run-ai commented on Feb 16, 2017

    @den-run-ai
    ContributorAuthor
  6. vmuriart commented on Feb 16, 2017

    @vmuriart
    Contributor

    Strange that run_tests didn't work though. I thought I had updated it to run pytest as well. Though from the looks of the error its a PY2/PY3 compatibility issue wrt relative/absolute imports.

    If you remove the import and the call to input it should work.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions