-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
TypeError on conftest.py during collection #2532
Labels
type: question
general question, might be closed after 2 weeks of inactivity
Comments
i suspect adding a |
You'd probably need to ask @jmcnamara but it looks like that code was written for Python 2, not Python 3. Also, note there's pytest-cpp which should also work for testing C code. Either way, I'm closing this as it's not a pytest issue 😉 |
thanks guys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am new to pytest.
I was just trying to run the pytest sample from the PYTEST_C_RUNNER repository(https://github.com/jmcnamara/pytest_c_testrunner) and I encountered this error:
_________________ ERROR collecting test/test_basic_integers.c _________________
conftest.py:38: in collect
lines = test_output.split("\n")
E TypeError: a bytes-like object is required, not 'str'
I did not do anything, I was just simply running pytest.
My pytest version is 3.1.2 and my python version is 3.5.2 running on anaconda version 2.5.0 (32-bit)
How do I fix this error?
Thanks.
The text was updated successfully, but these errors were encountered: