You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/01 15:30:54 UTC

[GitHub] [arrow] pitrou commented on a change in pull request #10641: ARROW-13236: [Python] Include options class name in repr

pitrou commented on a change in pull request #10641:
URL: https://github.com/apache/arrow/pull/10641#discussion_r662392655



##########
File path: python/pyarrow/tests/test_compute.py
##########
@@ -137,7 +137,7 @@ def test_option_class_equality():
                 pytest.fail(f"Options class is not tested: {cls}")
     for option in options:
         assert option == option
-        assert repr(option)
+        assert repr(option).startswith(option.__class__.__name__)

Review comment:
       Can you test the actual repr for one or two classes somewhere?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org