You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by dw...@apache.org on 2023/01/31 15:40:00 UTC
[iceberg] branch pyiceberg-0.3.x updated: Python: Let PyTest know that it shouldn't collect TestType (#6702)
This is an automated email from the ASF dual-hosted git repository.
dweeks pushed a commit to branch pyiceberg-0.3.x
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/pyiceberg-0.3.x by this push:
new 32431a79d1 Python: Let PyTest know that it shouldn't collect TestType (#6702)
32431a79d1 is described below
commit 32431a79d107a5fe8faa0ce28a31a0e4f2dcbf2e
Author: Fokko Driesprong <fo...@apache.org>
AuthorDate: Tue Jan 31 15:39:53 2023 +0000
Python: Let PyTest know that it shouldn't collect TestType (#6702)
Because TestType contains test in the name, pytest tries to collect
it and run tests on it. Setting `__test__ = False` tells PyTest
to ignore it
---
python/tests/test_transforms.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python/tests/test_transforms.py b/python/tests/test_transforms.py
index 8ba80e396b..3675ef0a82 100644
--- a/python/tests/test_transforms.py
+++ b/python/tests/test_transforms.py
@@ -422,6 +422,7 @@ def test_void_transform() -> None:
class TestType(IcebergBaseModel):
__root__: Transform[Any, Any]
+ __test__ = False
def test_bucket_transform_serialize() -> None: