diff options
author | shadchin <shadchin@yandex-team.com> | 2024-02-12 07:53:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@ydb.tech> | 2024-02-14 14:26:16 +0000 |
commit | 31f2a419764a8ba77c2a970cfc80056c6cd06756 (patch) | |
tree | c1995d239eba8571cefc640f6648e1d5dd4ce9e2 /library/python/runtime_py3/test/test_metadata.py | |
parent | fe2ef02b38d9c85d80060963b265a1df9f38c3bb (diff) | |
download | ydb-31f2a419764a8ba77c2a970cfc80056c6cd06756.tar.gz |
Update Python from 3.11.8 to 3.12.2
Diffstat (limited to 'library/python/runtime_py3/test/test_metadata.py')
-rw-r--r-- | library/python/runtime_py3/test/test_metadata.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/library/python/runtime_py3/test/test_metadata.py b/library/python/runtime_py3/test/test_metadata.py index 686c176468..95c9c69890 100644 --- a/library/python/runtime_py3/test/test_metadata.py +++ b/library/python/runtime_py3/test/test_metadata.py @@ -23,9 +23,12 @@ def test_metadata(): def test_files(): files = im.files("foo-bar") - assert len(files) == 1 - assert files[0].name == "foo_bar.py" - assert files[0].size == 20 + # Начиная с Python 3.12 добавилась проверка на существование файла, + # а не тупое возвращение всего из RECORD, в Аркадии это ни где не используется, + # потому пока поддержку не добавлял + assert len(files) == 0 + # assert files[0].name == "foo_bar.py" + # assert files[0].size == 20 def test_requires(): @@ -34,10 +37,10 @@ def test_requires(): def test_entry_points(): entry_points = im.entry_points() - assert "console_scripts" in entry_points + assert any(entry_point.group == "console_scripts" for entry_point in entry_points) flg_found = False - for entry_point in entry_points["console_scripts"]: + for entry_point in entry_points.select(group="console_scripts"): if entry_point.name == "foo_cli" and entry_point.value == "foo_bar:cli": flg_found = True |