/usr/local/lib64/python3.6/site-packages/pyarrow/tests
NameSizeModeActions
data/-0755rm
parquet/-0755rm
__pycache__/-0755rm
arrow_7980.py10940644editdlrm
bound_function_visit_strings.pyx20470644editdlrm
conftest.py79820644editdlrm
deserialize_buffer.py9610644editdlrm
pandas_examples.py51150644editdlrm
pandas_threaded_import.py14290644editdlrm
pyarrow_cython_example.pyx19510644editdlrm
strategies.py125250644editdlrm
test_adhoc_memory_leak.py14100644editdlrm
test_array.py1001570644editdlrm
test_builder.py21840644editdlrm
test_cffi.py130900644editdlrm
test_compute.py835510644editdlrm
test_convert_builtin.py717680644editdlrm
test_csv.py689430644editdlrm
test_cuda.py278630644editdlrm
test_cuda_numba_interop.py87300644editdlrm
test_cython.py59480644editdlrm
test_dataset.py1430230644editdlrm
test_deprecations.py8910644editdlrm
test_extension_type.py244370644editdlrm
test_feather.py232090644editdlrm
test_filesystem.py21060644editdlrm
test_flight.py737150644editdlrm
test_fs.py541330644editdlrm
test_gandiva.py143850644editdlrm
test_hdfs.py134520644editdlrm
test_io.py530660644editdlrm
test_ipc.py312670644editdlrm
test_json.py113250644editdlrm
test_jvm.py154710644editdlrm
test_memory.py49280644editdlrm
test_misc.py49270644editdlrm
test_orc.py92210644editdlrm
test_pandas.py1579090644editdlrm
test_plasma.py440110644editdlrm
test_plasma_tf_op.py35230644editdlrm
test_scalars.py210740644editdlrm
test_schema.py212820644editdlrm
test_serialization.py420260644editdlrm
test_serialization_deprecated.py17750644editdlrm
test_sparse_tensor.py174360644editdlrm
test_strategies.py17390644editdlrm
test_table.py531680644editdlrm
test_tensor.py62700644editdlrm
test_types.py314870644editdlrm
test_util.py17910644editdlrm
util.py90110644editdlrm
__init__.py00644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pyarrow/tests/test_misc.py (4927B)
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. import os import subprocess import sys import pytest import pyarrow as pa def test_get_include(): include_dir = pa.get_include() assert os.path.exists(os.path.join(include_dir, 'arrow', 'api.h')) @pytest.mark.skipif('sys.platform != "win32"') def test_get_library_dirs_win32(): assert any(os.path.exists(os.path.join(directory, 'arrow.lib')) for directory in pa.get_library_dirs()) def test_cpu_count(): n = pa.cpu_count() assert n > 0 try: pa.set_cpu_count(n + 5) assert pa.cpu_count() == n + 5 finally: pa.set_cpu_count(n) def test_io_thread_count(): n = pa.io_thread_count() assert n > 0 try: pa.set_io_thread_count(n + 5) assert pa.io_thread_count() == n + 5 finally: pa.set_io_thread_count(n) def test_build_info(): assert isinstance(pa.cpp_build_info, pa.BuildInfo) assert isinstance(pa.cpp_version_info, pa.VersionInfo) assert isinstance(pa.cpp_version, str) assert isinstance(pa.__version__, str) assert pa.cpp_build_info.version_info == pa.cpp_version_info # assert pa.version == pa.__version__ # XXX currently false def test_runtime_info(): info = pa.runtime_info() assert isinstance(info, pa.RuntimeInfo) possible_simd_levels = ('none', 'sse4_2', 'avx', 'avx2', 'avx512') assert info.simd_level in possible_simd_levels assert info.detected_simd_level in possible_simd_levels if info.simd_level != 'none': env = os.environ.copy() env['ARROW_USER_SIMD_LEVEL'] = 'none' code = f"""if 1: import pyarrow as pa info = pa.runtime_info() assert info.simd_level == 'none', info.simd_level assert info.detected_simd_level == {info.detected_simd_level!r},\ info.detected_simd_level """ subprocess.check_call([sys.executable, "-c", code], env=env) @pytest.mark.parametrize('klass', [ pa.Field, pa.Schema, pa.ChunkedArray, pa.RecordBatch, pa.Table, pa.Buffer, pa.Array, pa.Tensor, pa.DataType, pa.ListType, pa.LargeListType, pa.FixedSizeListType, pa.UnionType, pa.SparseUnionType, pa.DenseUnionType, pa.StructType, pa.Time32Type, pa.Time64Type, pa.TimestampType, pa.Decimal128Type, pa.Decimal256Type, pa.DictionaryType, pa.FixedSizeBinaryType, pa.NullArray, pa.NumericArray, pa.IntegerArray, pa.FloatingPointArray, pa.BooleanArray, pa.Int8Array, pa.Int16Array, pa.Int32Array, pa.Int64Array, pa.UInt8Array, pa.UInt16Array, pa.UInt32Array, pa.UInt64Array, pa.ListArray, pa.LargeListArray, pa.MapArray, pa.FixedSizeListArray, pa.UnionArray, pa.BinaryArray, pa.StringArray, pa.FixedSizeBinaryArray, pa.DictionaryArray, pa.Date32Array, pa.Date64Array, pa.TimestampArray, pa.Time32Array, pa.Time64Array, pa.DurationArray, pa.Decimal128Array, pa.Decimal256Array, pa.StructArray, pa.Scalar, pa.BooleanScalar, pa.Int8Scalar, pa.Int16Scalar, pa.Int32Scalar, pa.Int64Scalar, pa.UInt8Scalar, pa.UInt16Scalar, pa.UInt32Scalar, pa.UInt64Scalar, pa.HalfFloatScalar, pa.FloatScalar, pa.DoubleScalar, pa.Decimal128Scalar, pa.Decimal256Scalar, pa.Date32Scalar, pa.Date64Scalar, pa.Time32Scalar, pa.Time64Scalar, pa.TimestampScalar, pa.DurationScalar, pa.StringScalar, pa.BinaryScalar, pa.FixedSizeBinaryScalar, pa.ListScalar, pa.LargeListScalar, pa.MapScalar, pa.FixedSizeListScalar, pa.UnionScalar, pa.StructScalar, pa.DictionaryScalar, pa.ipc.Message, pa.ipc.MessageReader, pa.MemoryPool, pa.LoggingMemoryPool, pa.ProxyMemoryPool, ]) def test_extension_type_constructor_errors(klass): # ARROW-2638: prevent calling extension class constructors directly msg = "Do not call {cls}'s constructor directly, use .* instead." with pytest.raises(TypeError, match=msg.format(cls=klass.__name__)): klass()