You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/02/16 00:38:33 UTC

[arrow] branch master updated: MINOR: [Integration] Simplified code in tests

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new f8689a1  MINOR: [Integration] Simplified code in tests
f8689a1 is described below

commit f8689a12bb7e4ee9861456c1629637bbf8d5d11c
Author: Jorge C. Leitao <jo...@gmail.com>
AuthorDate: Wed Feb 16 09:35:33 2022 +0900

    MINOR: [Integration] Simplified code in tests
    
    Closes #12410 from jorgecarleitao/simpler
    
    Authored-by: Jorge C. Leitao <jo...@gmail.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/archery/archery/cli.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.py
index d8eeb7b..2a2e13a 100644
--- a/dev/archery/archery/cli.py
+++ b/dev/archery/archery/cli.py
@@ -18,7 +18,6 @@
 from collections import namedtuple
 from io import StringIO
 import click
-import errno
 import json
 import logging
 import os
@@ -750,11 +749,7 @@ def integration(with_all=False, random_seed=12345, **args):
             enabled_languages += 1
 
     if gen_path:
-        try:
-            os.makedirs(gen_path)
-        except OSError as e:
-            if e.errno != errno.EEXIST:
-                raise
+        os.makedirs(gen_path, exist_ok=True)
         write_js_test_json(gen_path)
     else:
         if enabled_languages == 0: