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

Tests failing on Aki #34

Closed
jaraco opened this issue Jun 20, 2023 · 1 comment
Closed

Tests failing on Aki #34

jaraco opened this issue Jun 20, 2023 · 1 comment

Comments

@jaraco
Copy link
Owner

jaraco commented Jun 20, 2023

The two 'child' tests are failing on Mercurial 6.4:

 hgtools debug/emit-hg-version @ tox -- -k in_child -v -p no:cov
.pkg: _optional_hooks> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_editable> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: build_editable> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
py: install_package> python -I -m pip install --force-reinstall --no-deps .tox/.tmp/package/16/hgtools-9.1.1.dev59+g1c5d8b0-0.editable-py3-none-any.whl
py: commands[0]> pytest -k in_child -v -p no:cov
============================================================= test session starts ==============================================================
platform darwin -- Python 3.11.3, pytest-7.3.2, pluggy-1.0.0 -- /Users/jaraco/code/jaraco/hgtools/.tox/py/bin/python
cachedir: .tox/py/.pytest_cache
rootdir: /Users/jaraco/code/jaraco/hgtools
configfile: pytest.ini
plugins: black-0.3.12, enabler-2.1.1, mypy-0.10.3, ruff-0.1, checkdocs-2.9.0
collected 88 items / 85 deselected / 3 selected                                                                                                

hgtools/tests/test_mercurial.py::TestRelativePaths::test_manager_in_child FAILED                                                         [ 50%]
hgtools/tests/test_mercurial.py::TestRelativePaths::test_current_dir_in_child FAILED                                                     [100%]

=================================================================== FAILURES ===================================================================
___________________________________________________ TestRelativePaths.test_manager_in_child ____________________________________________________

self = <hgtools.tests.test_mercurial.TestRelativePaths object at 0x102a8fe90>

    def test_manager_in_child(self):
        test_mgr = managers.MercurialManager('bar')
>       assert test_mgr.find_files() == ['baz']
E       AssertionError: assert ['../baz'] == ['baz']
E         At index 0 diff: '../baz' != 'baz'
E         Full diff:
E         - ['baz']
E         + ['../baz']
E         ?   +++

/Users/jaraco/code/jaraco/hgtools/hgtools/tests/test_mercurial.py:55: AssertionError
_________________________________________________ TestRelativePaths.test_current_dir_in_child __________________________________________________

self = <hgtools.tests.test_mercurial.TestRelativePaths object at 0x102a94610>

    def test_current_dir_in_child(self):
        os.chdir('bar')
        test_mgr = managers.MercurialManager('.')
>       assert test_mgr.find_files() == ['baz']
E       AssertionError: assert ['../baz'] == ['baz']
E         At index 0 diff: '../baz' != 'baz'
E         Full diff:
E         - ['baz']
E         + ['../baz']
E         ?   +++

/Users/jaraco/code/jaraco/hgtools/hgtools/tests/test_mercurial.py:60: AssertionError
=========================================================== short test summary info ============================================================
FAILED hgtools/tests/test_mercurial.py::TestRelativePaths::test_manager_in_child - AssertionError: assert ['../baz'] == ['baz']
FAILED hgtools/tests/test_mercurial.py::TestRelativePaths::test_current_dir_in_child - AssertionError: assert ['../baz'] == ['baz']
======================================================= 2 failed, 85 deselected in 2.60s =======================================================
py: exit 1 (2.78 seconds) /Users/jaraco/code/jaraco/hgtools> pytest -k in_child -v -p no:cov pid=96435
.pkg: _exit> python /Users/jaraco/.local/pipx/venvs/tox/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  py: FAIL code 1 (3.44=setup[0.66]+cmd[2.78] seconds)
  evaluation failed :( (3.49 seconds)
@jaraco jaraco changed the title Tests failing on Mercurial 6.4 Tests failing on Aki Jun 20, 2023
@jaraco
Copy link
Owner Author

jaraco commented Jun 20, 2023

Aha. The issue was not the Mercurial version, but the fact that this host on which I was testing had ui.relative-paths=yes configured (as part of Google's customizations).

@jaraco jaraco closed this as completed in f2cdd51 Jun 20, 2023
jaraco added a commit that referenced this issue Jun 20, 2023
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

1 participant