Coder Social home page Coder Social logo

15.0.0: test suite is failing about path HOT 6 CLOSED

kloczek avatar kloczek commented on September 6, 2024
15.0.0: test suite is failing

from path.

Comments (6)

kloczek avatar kloczek commented on September 6, 2024

BTW https://pypi.python.org/pypi/path.py/ shows that latest version is 12.5.0.
Is that OK and something is wrong with 15.0.0?

from path.

jaraco avatar jaraco commented on September 6, 2024

Thanks for the report. This issue was addressed in 904d648 and released as 15.0.1.

BTW https://pypi.python.org/pypi/path.py/ shows that latest version is 12.5.0.
Is that OK and something is wrong with 15.0.0?

The project was renamed from path.py to path. Please use the package under the name path (pypi).

from path.

kloczek avatar kloczek commented on September 6, 2024

Just tested 15.0.1 ad still something is wrong.

+ cd path-15.0.1
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages
+ pytest -v
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.3, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/.hypothesis/examples')
rootdir: /home/tkloczko/rpmbuild/BUILD/path-15.0.1, configfile: pytest.ini
plugins: hypothesis-4.23.8, flaky-3.6.1, forked-1.3.0, xdist-2.1.0, shutil-1.7.0, virtualenv-1.7.0, cov-2.10.1
collected 82 items / 2 errors / 80 selected

================================================================================== ERRORS ==================================================================================
____________________________________________________________________ ERROR collecting path/matchers.py _____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:310: in from_call
    result = func()  # type: Optional[TResult]
/usr/lib/python3.8/site-packages/_pytest/runner.py:340: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
    module = import_path(self.fspath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:537: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('path.matchers', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages/path/matchers.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/path/matchers.py'))
___________________________________________________________________ ERROR collecting path/py37compat.py ____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:310: in from_call
    result = func()  # type: Optional[TResult]
/usr/lib/python3.8/site-packages/_pytest/runner.py:340: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
    module = import_path(self.fspath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:537: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('path.py37compat', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages/path/py37compat.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/path/py37compat.py'))
========================================================================= short test summary info ==========================================================================
ERROR path/matchers.py - _pytest.pathlib.ImportPathMismatchError: ('path.matchers', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8...
ERROR path/py37compat.py - _pytest.pathlib.ImportPathMismatchError: ('path.py37compat', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/pytho...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 2 errors in 0.44s =============================================================================

from path.

jaraco avatar jaraco commented on September 6, 2024

That looks like a different issue with a different error. It looks to me like there’s something about the rpm environment that’s making two copies of the project. How could one replicate the issue?

from path.

jaraco avatar jaraco commented on September 6, 2024

Please open a new issue and mention me on it if I can help investigate the RPM issue, but please do put together a repro (such as a Dockerfile that replicates the behavior).

from path.

kloczek avatar kloczek commented on September 6, 2024

This issu has nothing to do with rpm.
Rpm is used only here to execute repeatable build and test procedure.

from path.

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.