Skip to content

Commit 7dfb059

Browse files
committed
Regenerate tests for torch
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent e4e99f2 commit 7dfb059

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[
22
[
33
{
4-
"package": "pkg:pypi/torchcodec@0.2.0%2Bcu124",
4+
"package": "pkg:pypi/torchcodec@0.3.0%2Bcu126",
55
"dependencies": []
66
}
77
],
88
[
9-
"pkg:pypi/torchcodec@0.2.0%2Bcu124"
9+
"pkg:pypi/torchcodec@0.3.0%2Bcu126"
1010
]
1111
]

tests/test_resolution.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import packvers
1515
import pytest
16-
from commoncode.system import on_mac
16+
from commoncode.system import on_linux
1717
from commoncode.testcase import FileDrivenTesting
1818
from packvers.requirements import Requirement
1919
from test_cli import check_data_results
@@ -131,10 +131,13 @@ def test_get_resolved_dependencies_with_tilde_requirement_using_json_api():
131131
)
132132

133133

134+
# fbgemm_gpu-1.2.0+cu118-cp312-cp312-manylinux_2_28_x86_64.whl
135+
136+
134137
@pytest.mark.online
135-
@pytest.mark.skipif(on_mac, reason="torch is only available for linux and windows.")
138+
@pytest.mark.skipif(not on_linux, reason="torch is only available for linux.")
136139
def test_get_resolved_dependencies_for_version_containing_local_version_identifier():
137-
req = Requirement("torchcodec==0.2.0+cu124")
140+
req = Requirement("torchcodec==0.3.0+cu126")
138141
req.is_requirement_resolved = True
139142

140143
repos = [PypiSimpleRepository(index_url="https://download.pytorch.org/whl")]

0 commit comments

Comments
 (0)