"csrc/vscode:/vscode.git/clone" did not exist on "3efb66213bbfffcc4aa2c8241ad0f719c875897f"
Unverified Commit b4cb352c authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

fail test suite on unexpected passes (#5556)

parent 50608fbc
...@@ -10,3 +10,4 @@ addopts = ...@@ -10,3 +10,4 @@ addopts =
--ignore-glob=test/test_prototype_*.py --ignore-glob=test/test_prototype_*.py
testpaths = testpaths =
test test
xfail_strict = True
...@@ -107,14 +107,7 @@ class TestCommon: ...@@ -107,14 +107,7 @@ class TestCommon:
next(iter(dataset.map(transforms.Identity()))) next(iter(dataset.map(transforms.Identity())))
@parametrize_dataset_mocks( @parametrize_dataset_mocks(DATASET_MOCKS)
DATASET_MOCKS,
marks={
"cub200": pytest.mark.xfail(
reason="See https://github.com/pytorch/vision/pull/5187#issuecomment-1015479165"
)
},
)
def test_traversable(self, test_home, dataset_mock, config): def test_traversable(self, test_home, dataset_mock, config):
dataset_mock.prepare(test_home, config) dataset_mock.prepare(test_home, config)
...@@ -122,14 +115,7 @@ class TestCommon: ...@@ -122,14 +115,7 @@ class TestCommon:
traverse(dataset) traverse(dataset)
@parametrize_dataset_mocks( @parametrize_dataset_mocks(DATASET_MOCKS)
DATASET_MOCKS,
marks={
"cub200": pytest.mark.xfail(
reason="See https://github.com/pytorch/vision/pull/5187#issuecomment-1015479165"
)
},
)
@pytest.mark.parametrize("annotation_dp_type", (Shuffler, ShardingFilter)) @pytest.mark.parametrize("annotation_dp_type", (Shuffler, ShardingFilter))
def test_has_annotations(self, test_home, dataset_mock, config, annotation_dp_type): def test_has_annotations(self, test_home, dataset_mock, config, annotation_dp_type):
def scan(graph): def scan(graph):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment