Giter VIP home page Giter VIP logo

Comments (1)

kloczek avatar kloczek commented on August 17, 2024

Hmm just found that I had patch aadapted from Fedora which has been ranaming pip-run to pip_run and removing pip-run.py.
After remove those two modyficztions pytest is now OK.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pip-run-9.1.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pip-run-9.1.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0, configfile: pytest.ini
collected 31 items

pip_run/commands.py ...                                                                                                                                              [  9%]
pip_run/deps.py ..                                                                                                                                                   [ 16%]
pip_run/read-deps.py .                                                                                                                                               [ 19%]
pip_run/scripts.py .                                                                                                                                                 [ 22%]
pip_run/text.py .                                                                                                                                                    [ 25%]
pip_run/tests/test_deps.py ......                                                                                                                                    [ 45%]
pip_run/tests/test_launch.py ..x..                                                                                                                                   [ 61%]
pip_run/tests/test_scripts.py ............                                                                                                                           [100%]

============================================================================= warnings summary =============================================================================
pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_one_code_block
  /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_one_code_block0/test_one_code_block.ipynb' mode='r' encoding='UTF-8'>
    doc = json.load(open(script_path))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_multiple_code_blocks
  /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_multiple_code_blocks0/test_multiple_code_blocks.ipynb' mode='r' encoding='UTF-8'>
    doc = json.load(open(script_path))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_code_and_markdown
  /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_code_and_markdown0/test_code_and_markdown.ipynb' mode='r' encoding='UTF-8'>
    doc = json.load(open(script_path))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

pip_run/tests/test_scripts.py::TestNotebookDepsReader::test_jupyter_directives
  /home/tkloczko/rpmbuild/BUILD/pip-run-9.1.0/pip_run/scripts.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-tkloczko/pytest-694/test_jupyter_directives0/test_jupyter_directives.ipynb' mode='r' encoding='UTF-8'>
    doc = json.load(open(script_path))
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
XFAIL pip_run/tests/test_launch.py::test_with_path_overlay - cleanup can't occur with execv; #4
================================================================ 30 passed, 1 xfailed, 4 warnings in 7.42s =================================================================
pytst whows some warnings as well.

I just found that pip_run/tests is installed so I'll leave this ticked opened as seems still something should be done.
Test suite should be excluded from list of files added to .whl archive.

from pip-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.