Skip to content

Some tests are failing under certain conditions #65

Description

@keithchev

I incidentally noticed that a few tests are failing on python >= 3.10 when using uv as an environment manager.

Here's what I did:

  • migrate pyproject.toml to use uv using uvx migrate-to-uv
  • delete the uv.lock file that this command produced b/c it is broken.
  • run uv venv -p 3.12 to create a new virtualenv with python 3.12.
  • run uv run pytest (this automatically installs dependencies).

The failures are shown below. I unfortunately cannot reproduce these when using our "official" poetry-based approach described in the README (with Python 3.12 instead of 3.9).

FAILED arcadia_pycolor/tests/plotting/test_bespoke_plots.py::test_plot_stacked_barplot[full_wide] - TypeError: object of type 'list_reverseiterator' has no len()
FAILED arcadia_pycolor/tests/plotting/test_bespoke_plots.py::test_plot_stacked_barplot[full_square] - TypeError: object of type 'list_reverseiterator' has no len()
FAILED arcadia_pycolor/tests/plotting/test_bespoke_plots.py::test_plot_stacked_barplot[float_wide] - TypeError: object of type 'list_reverseiterator' has no len()
FAILED arcadia_pycolor/tests/plotting/test_bespoke_plots.py::test_plot_stacked_barplot[float_square] - TypeError: object of type 'list_reverseiterator' has no len()
FAILED arcadia_pycolor/tests/plotting/test_bespoke_plots.py::test_plot_stacked_barplot[half_square] - TypeError: object of type 'list_reverseiterator' has no len()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions