Weston Pace created ARROW-12295: ----------------------------------- Summary: [C++] [Python] Python tests fail if compiled with glog Key: ARROW-12295 URL: https://issues.apache.org/jira/browse/ARROW-12295 Project: Apache Arrow Issue Type: Bug Components: C++, Python Reporter: Weston Pace
I'm not really sure if this is a problem. I don't think GLOG should be enabled if using Python anyways. However, I have it turned on for my local builds since I use it sometimes for instrumentation. Recently, when running python tests I get the following failure from test_memory.py {code:java} def check_env_var(name, expected, *, expect_warning=False): code = f"""if 1: import pyarrow as pa pool = pa.default_memory_pool() assert pool.backend_name in {expected!r}, pool.backend_name """ env = dict(os.environ) env['ARROW_DEFAULT_MEMORY_POOL'] = name res = subprocess.run([sys.executable, "-c", code], env=env, universal_newlines=True, stderr=subprocess.PIPE) if res.returncode != 0: print(res.stderr, file=sys.stderr) res.check_returncode() # fail errlines = res.stderr.splitlines() if expect_warning: > assert len(errlines) == 1 E assert 2 == 1 E + where 2 = len(['WARNING: Logging before InitGoogleLogging() is written to STDERR', "W0408 01:23:43.401316 18454 memory_pool.cc:128] Unsupported backend 'nonexistent' specified in ARROW_DEFAULT_MEMORY_POOL (supported backends are 'jemalloc', 'system')"]) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)