Package: src:python-pecan
Version: 1.5.1-6
Severity: serious
Tags: sid forky
User: [email protected]
Usertags: pkg-resources-deprecation
using the removed pkg_resources module in the autopkg tests:
[...]
94s > import pkg_resources
94s E ModuleNotFoundError: No module named 'pkg_resources'
94s
94s pecan/scaffolds/__init__.py:4: ModuleNotFoundError
94s _________
TestScaffoldUtils.test_destination_directory_already_exists __________
94s
94s self = <pecan.tests.test_scaffolds.TestScaffoldUtils
testMethod=test_destination_directory_already_exists>
94s
94s def test_destination_directory_already_exists(self):
94s > from pecan.scaffolds import copy_dir
94s
94s pecan/tests/test_scaffolds.py:92:
94s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
94s
94s import sys
94s import os
94s import re
94s > import pkg_resources
94s E ModuleNotFoundError: No module named 'pkg_resources'
94s
94s pecan/scaffolds/__init__.py:4: ModuleNotFoundError
94s ___________
TestScaffoldUtils.test_destination_directory_levels_deep ___________
94s
94s self = <pecan.tests.test_scaffolds.TestScaffoldUtils
testMethod=test_destination_directory_levels_deep>
94s
94s def test_destination_directory_levels_deep(self):
94s > from pecan.scaffolds import copy_dir
94s
94s pecan/tests/test_scaffolds.py:65:
94s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
94s
94s import sys
94s import os
94s import re
94s > import pkg_resources
94s E ModuleNotFoundError: No module named 'pkg_resources'
94s
94s pecan/scaffolds/__init__.py:4: ModuleNotFoundError
94s =============================== warnings summary
===============================
94s
pecan/tests/middleware/test_static.py::TestStaticFileMiddleware::test_file_can_be_closed
94s
pecan/tests/middleware/test_static.py::TestStaticFileMiddleware::test_file_can_be_found
94s
pecan/tests/middleware/test_static.py::TestStaticFileMiddleware::test_file_can_be_iterated_over
94s
pecan/tests/middleware/test_static.py::TestStaticFileMiddleware::test_mime_type_works_for_png_files
94s
pecan/tests/middleware/test_static.py::TestStaticFileMiddleware::test_separator_sanitization_still_finds_file
94s
/tmp/autopkgtest.8gjsW0/build.eBf/src/pecan/middleware/static.py:118:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated
and scheduled for removal in a future version. Use timezone-aware
objects to represent datetimes in UTC:
datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
94s datetime.utcfromtimestamp(os.path.getmtime(filename)),
94s
94s pecan/tests/test_conf.py::TestConf::test_config_from_file
94s pecan/tests/test_conf.py::TestConf::test_config_illegal_ids
94s pecan/tests/test_conf.py::TestConf::test_config_with_bad_import
94s pecan/tests/test_conf.py::TestConf::test_update_force_dict
94s pecan/tests/test_conf.py::TestConf::test_update_set_config
94s pecan/tests/test_conf.py::TestConf::test_update_set_default_config
94s pecan/tests/test_conf.py::TestGlobalConfig::test_overwrite_from_file
94s pecan/tests/test_conf.py::TestGlobalConfig::test_paint_from_file
94s <frozen importlib._bootstrap>:533: DeprecationWarning: the
load_module() method is deprecated and slated for removal in Python
3.15; use exec_module() instead
94s
94s -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
94s =========================== short test summary info
============================
94s FAILED
pecan/tests/test_commands.py::TestCommandManager::test_commands - Modu...
94s FAILED
pecan/tests/test_commands.py::TestCommandRunner::test_commands - Modul...
94s FAILED pecan/tests/test_commands.py::TestCommandRunner::test_run -
ModuleNotF...
94s FAILED pecan/tests/test_commands.py::TestCreateCommand::test_run -
ModuleNotF...
94s FAILED
pecan/tests/test_scaffolds.py::TestPecanScaffold::test_normalize_pkg_name
94s FAILED
pecan/tests/test_scaffolds.py::TestScaffoldUtils::test_copy_dir - Modu...
94s FAILED
pecan/tests/test_scaffolds.py::TestScaffoldUtils::test_copy_dir_with_file_content_substitution
94s FAILED
pecan/tests/test_scaffolds.py::TestScaffoldUtils::test_copy_dir_with_filename_substitution
94s FAILED
pecan/tests/test_scaffolds.py::TestScaffoldUtils::test_destination_directory_already_exists
94s FAILED
pecan/tests/test_scaffolds.py::TestScaffoldUtils::test_destination_directory_levels_deep
94s ========== 10 failed, 530 passed, 3 deselected, 13 warnings in
3.02s ===========