Skip to content

Commit

Permalink
Test: Fix for Py312 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet authored Feb 4, 2025
1 parent 11e1036 commit eb3724b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Provide a general summary of your proposed changes in the Title field above -->
<!-- The title should have the following form: 'Type: Subject' with 'type' in [Build,Chore,CI,Reprecate,Docs,Feat,Fix,Perf,Refactor,Revert,Style,Test] -->
<!-- The title should have the following form: 'Type: Subject' with 'type' in [Build,Chore,CI,Deprecate,Docs,Feat,Fix,Perf,Refactor,Revert,Style,Test] -->

### Description
<!-- Describe your changes in detail and the reasons of these changes -->
Expand Down
4 changes: 2 additions & 2 deletions tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# pylint: disable=too-many-lines
# pylint: disable=unused-argument
# pylint: disable=unused-variable
import importlib
import json
import logging
import warnings
Expand All @@ -27,7 +28,6 @@
import pytest
from luigi.util import inherits
from packaging.version import Version
from pkg_resources import get_distribution

import luigi_tools.parameter
import luigi_tools.target
Expand Down Expand Up @@ -665,7 +665,7 @@ def output(self):
assert luigi.build([TaskListParameter(), TaskCopyListParameter()], local_scheduler=True)

@pytest.mark.skipif(
Version(get_distribution("luigi").version) < Version("3.2"),
Version(importlib.metadata.version("luigi")) < Version("3.2"),
reason="Schemas are only available for luigi>=3.2",
)
def test_dict_param_with_schema(self):
Expand Down

0 comments on commit eb3724b

Please sign in to comment.