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

py3 support? #30

Open
csheirer opened this issue Jul 20, 2020 · 4 comments
Open

py3 support? #30

csheirer opened this issue Jul 20, 2020 · 4 comments

Comments

@csheirer
Copy link

csheirer commented Jul 20, 2020

Any plans for Python 3 support? Can't seem to get this tool to run in Python 3.8, never recognizes tests that are recognized when I run successfully in a 2.7 venv

I've got some simple assert tests I'm trying to run that aren't recognized as tests when I run yarn jest

` FAIL tests/assertEqual_test.py
● Test suite failed to run

Your test suite must contain at least one test.

  at onResult (node_modules/@jest/core/build/TestScheduler.js:173:18)
  at node_modules/jest-pytest/lib/index.js:35:101`

The test to which is just a simple

def func(x):
return x + 1

def test_ints_equal():
assert func(4) == 5,"false!"

Runs without any complaints when I pass the script through to pytest though. Kinda at my wits end.

@wind13
Copy link

wind13 commented Jul 28, 2020

Same problem. https://gitee.com/wind13/jest-pytest-demo

@sandym
Copy link

sandym commented Aug 6, 2020

You can get more information by defining the environment variable JEST_PYTEST_DEBUG_IPC=1.

I got it to work with Python 3.8.5 by commenting out the pytest_logwarning
method in the pytest_jest/plugin.py file.

@gattasrikanth
Copy link

Commenting out the pytest_logwarning did worked for me as well. But is there any general fix for the problem?
The workaround is not possible in a CI/CD pipeline environments.

@joshenders
Copy link

With Python2 deprecated, this project is effectively useless. It's a shame. This is a really good idea but there's just no active maintenance.

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

No branches or pull requests

5 participants