File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ jobs:
55
55
56
56
- name : Build wheels
57
57
env :
58
- # Skip building on Python 2.7 and PyPy
58
+ # Skip building on Python 2.7
59
59
# Additionally, skip 32-bit Windows for now as MSVC needs seperate setup with different toolchain to do this
60
60
# Refer: https://cibuildwheel.readthedocs.io/en/stable/cpp_standards/#windows-and-python-27
61
- CIBW_SKIP : cp27-* pp* *-win32 cp35-*
61
+ CIBW_SKIP : cp27-* *-win32 cp35-*
62
62
CIBW_BEFORE_TEST : pip install -r tests/requirements.txt
63
63
CIBW_TEST_COMMAND : pytest {project}/tests
64
64
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64" # build on M1 chip
Original file line number Diff line number Diff line change @@ -74,7 +74,15 @@ toml::array py_list_to_toml_array(const py::list &list) {
74
74
arr.push_back (time_value);
75
75
} else {
76
76
std::stringstream ss;
77
+ #ifdef PYPY_VERSION
78
+ // see
79
+ // https://github.com/conda-forge/pytomlpp-feedstock/pull/1#issuecomment-972738986
80
+ // and
81
+ // https://github.com/pybind/pybind11/issues/3408#issuecomment-972752210
82
+ ss << " not a valid type for conversion " << std::endl;
83
+ #else
77
84
ss << " not a valid type for conversion " << it << std::endl;
85
+ #endif
78
86
throw py::type_error (ss.str ());
79
87
}
80
88
}
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ class A:
117
117
pass
118
118
with pytest .raises (TypeError ):
119
119
pytomlpp .dumps ({'a' : A ()})
120
+ with pytest .raises (TypeError ):
121
+ pytomlpp .dumps ({'a' : [A ()]})
120
122
121
123
@pytest .mark .parametrize ("toml_file" , valid_toml_files )
122
124
def test_decode_encode_binary (toml_file , tmp_path ):
You can’t perform that action at this time.
0 commit comments