xnd-project / libxnd

Subsumed into xnd
https://xnd.io/
BSD 3-Clause "New" or "Revised" License
80 stars 12 forks source link

Setup for development on mac #5

Closed saulshanabrook closed 6 years ago

saulshanabrook commented 6 years ago

I am getting set up locally for development and there is one test that is failing.

I am following the mac clang commands in .travis.yml. I have installed python3 from homebrew.

$ python3 --version
Python 3.6.4

All seemed to work, besides this one test failure:

$ python3 setup.py test
test_module (__main__.TestModule) ... ok
test_function (__main__.TestFunction) ... ok
test_void (__main__.TestVoid) ... ok
test_any (__main__.TestAny) ... ok
test_fixed_dim_assign (__main__.TestFixedDim) ... ok
test_fixed_dim_empty (__main__.TestFixedDim) ... ok
test_fixed_dim_overflow (__main__.TestFixedDim) ... skipped 'mach_vm_map message defeats the purpose of this test'
test_fixed_dim_subscript (__main__.TestFixedDim) ... ok
test_fortran_assign (__main__.TestFortran) ... ok
test_fortran_empty (__main__.TestFortran) ... ok
test_fortran_overflow (__main__.TestFortran) ... skipped 'mach_vm_map message defeats the purpose of this test'
test_fortran_subscript (__main__.TestFortran) ... ok
test_var_dim_assign (__main__.TestVarDim) ... ok
test_var_dim_empty (__main__.TestVarDim) ... ok
test_var_dim_overflow (__main__.TestVarDim) ... ok
test_symbolic_dim_raise (__main__.TestSymbolicDim) ... ok
test_ellipsis_dim_raise (__main__.TestEllipsisDim) ... ERROR
test_tuple_assign (__main__.TestTuple) ... ok
test_tuple_empty (__main__.TestTuple) ... ok
test_tuple_overflow (__main__.TestTuple) ... ok
test_record_assign (__main__.TestRecord) ... ok
test_record_empty (__main__.TestRecord) ... ok
test_record_overflow (__main__.TestRecord) ... ok
test_ref_assign (__main__.TestRef) ... ok
test_ref_empty (__main__.TestRef) ... ok
test_ref_empty_view (__main__.TestRef) ... ok
test_ref_indexing (__main__.TestRef) ... ok
test_constr_assign (__main__.TestConstr) ... ok
test_constr_empty (__main__.TestConstr) ... ok
test_constr_empty_view (__main__.TestConstr) ... ok
test_constr_indexing (__main__.TestConstr) ... ok
test_nominal (__main__.TestNominal) ... ok
test_scalar_kind (__main__.TestScalarKind) ... ok
test_categorical_assign (__main__.TestCategorical) ... ok
test_categorical_empty (__main__.TestCategorical) ... ok
test_fixed_string_kind (__main__.TestFixedStringKind) ... ok
test_fixed_string (__main__.TestFixedString) ... ok
test_fixed_string_assign (__main__.TestFixedString) ... ok
test_fixed_string_empty (__main__.TestFixedString) ... ok
test_fixed_string_overflow (__main__.TestFixedString) ... ok
test_fixed_bytes_kind (__main__.TestFixedBytesKind) ... ok
test_fixed_bytes_assign (__main__.TestFixedBytes) ... ok
test_fixed_bytes_empty (__main__.TestFixedBytes) ... ok
test_fixed_bytes_overflow (__main__.TestFixedBytes) ... ok
test_string (__main__.TestString) ... ok
test_string_assign (__main__.TestString) ... ok
test_string_empty (__main__.TestString) ... ok
test_bytes_assign (__main__.TestBytes) ... ok
test_bytes_empty (__main__.TestBytes) ... ok
test_char (__main__.TestChar) ... ok
test_bool (__main__.TestBool) ... ok
test_signed_kind (__main__.TestSignedKind) ... ok
test_signed (__main__.TestSigned) ... ok
test_unsigned_kind (__main__.TestUnsignedKind) ... ok
test_unsigned (__main__.TestUnsigned) ... ok
test_float_kind (__main__.TestFloatKind) ... ok
test_float16 (__main__.TestFloat) ... ok
test_float32 (__main__.TestFloat) ... ok
test_float64 (__main__.TestFloat) ... ok
test_complex_kind (__main__.TestComplexKind) ... ok
test_complex128 (__main__.TestComplex) ... ok
test_complex32 (__main__.TestComplex) ... ok
test_complex64 (__main__.TestComplex) ... ok
test_primitive_empty (__main__.TestPrimitive) ... ok
test_typevar (__main__.TestTypevar) ... ok
test_bytes (__main__.TestTypeInference) ... ok
test_complex128 (__main__.TestTypeInference) ... ok
test_float64 (__main__.TestTypeInference) ... ok
test_int64 (__main__.TestTypeInference) ... ok
test_optional (__main__.TestTypeInference) ... ok
test_record (__main__.TestTypeInference) ... ok
test_string (__main__.TestTypeInference) ... ok
test_tuple (__main__.TestTypeInference) ... ok
test_indexing (__main__.TestIndexing) ... ok
test_subview (__main__.TestIndexing) ... ok
test_sequence (__main__.TestSequence) ... ok
test_hash (__main__.TestAPI) ... ok
test_short_value (__main__.TestAPI) ... ok
test_repr (__main__.TestRepr) ... ok
test_endian (__main__.TestBuffer) ... ok
test_from_buffer (__main__.TestBuffer) ... ok
test_readonly (__main__.TestBuffer) ... ok
test_array_definition (__main__.LongIndexSliceTest) ... ok
test_chained_indices_slices (__main__.LongIndexSliceTest) ... ok
test_fixed_mixed_indices_slices (__main__.LongIndexSliceTest) ... ok
test_slices (__main__.LongIndexSliceTest) ... ok
test_slices_brute_force (__main__.LongIndexSliceTest) ... skipped 'use --all argument to enable these tests'
test_subarray (__main__.LongIndexSliceTest) ... ok
test_var_mixed_indices_slices (__main__.LongIndexSliceTest) ... ok

======================================================================
ERROR: test_ellipsis_dim_raise (__main__.TestEllipsisDim)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/test_xnd.py", line 484, in test_ellipsis_dim_raise
    t = ndt(ss)
ValueError: 1:6: syntax error, unexpected ELLIPSIS

----------------------------------------------------------------------
Ran 89 tests in 61.487s

FAILED (errors=1, skipped=3)
skrah commented 6 years ago

Thanks, xnd was out of sync with the recent commit https://github.com/plures/ndtypes/commit/1a15985d5f31b7a17cde975d61651628c16fc095 .

I think it should be fixed now. Unfortunately this will probably happen more often in the future.

saulshanabrook commented 6 years ago

@skrah Your new commit fixed it, thanks.