Skip to content

Commit b73880b

Browse files
committed
Add Python 3.11 to test matrix
1 parent 509aa61 commit b73880b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/core-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ jobs:
1818
matrix:
1919
os: ["ubuntu-latest", "windows-latest"]
2020
# "macos-latest",
21-
python-version: ['3.8', '3.9', '3.10']
21+
python-version: ['3.8', '3.9', '3.10', '3.11']
2222
numpy-version: ['1.19.5', '1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.1']
2323
exclude:
2424
- python-version: '3.10'
2525
numpy-version: '1.19.5'
2626
- python-version: '3.10'
2727
numpy-version: '1.20.3'
28+
- python-version: '3.11'
29+
numpy-version: '1.19.5'
30+
- python-version: '3.11'
31+
numpy-version: '1.20.3'
2832
steps:
2933
- name: Set up Python ${{ matrix.python-version }}
3034
uses: actions/setup-python@v4

neo/test/coretest/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def test_numpy_array_str(self):
940940

941941
def test_numpy_array_string0(self):
942942
'''test to make sure string0 type numpy arrays are accepted'''
943-
value = np.array([1, 2, 3, 4, 5], dtype=np.strp)
943+
value = np.array([1, 2, 3, 4, 5], dtype=np.str_)
944944
self.base.annotate(data=value)
945945
result = {'data': value}
946946
self.assertDictEqual(result, self.base.annotations)
@@ -1127,7 +1127,7 @@ def test_numpy_array_str(self):
11271127

11281128
def test_numpy_scalar_string0(self):
11291129
'''test to make sure string0 type numpy scalars are rejected'''
1130-
value = np.array(99, dtype=np.strp)
1130+
value = np.array(99, dtype=np.str_)
11311131
self.base.annotate(data=value)
11321132
result = {'data': value}
11331133
self.assertDictEqual(result, self.base.annotations)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
'Programming Language :: Python :: 3.8',
5656
'Programming Language :: Python :: 3.9',
5757
'Programming Language :: Python :: 3.10',
58+
'Programming Language :: Python :: 3.11',
5859
'Programming Language :: Python :: 3 :: Only',
5960
'Topic :: Scientific/Engineering']
6061
)

0 commit comments

Comments
 (0)