Skip to content

[Bug]: some tests fail when using python 3.11 #124

@Loxeris

Description

@Loxeris

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

in pyproject.toml the python version is set to python>=3.11, but filter parameter in tarfile.extractall() is only available from version 3.12.

tf.extractall(path=Path(destination), filter="data")

Tests test_run_job_paralelly and test_run_job_success with pigather fail because filter is not recognized
TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'

Steps to Reproduce

  1. Set requires-python = "==3.11" in pyproject.toml
  2. Run pixi install
  3. Run tests
  4. Observe test_run_job_paralelly and test_run_job_success failing

Expected Behavior

Tests should not be failing because of a supported python version

Actual Behavior

Tests test_run_job_paralelly and test_run_job_success with pigather fail :
TypeError: TarFile.extractall() got an unexpected keyword argument 'filter'

Environment

Python 3.11

Relevant Log Output

Additional Context

To fix the problem, python version could be set to >=3.12 or filter parameter can be dropped (unavailable in 3.11 and default value is "data" from version 3.14)
more info at https://docs.python.org/3/library/tarfile.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions