Skip to content

Commit 78a8d71

Browse files
authored
Merge pull request #6448 from ales-erjavec/ci/python3.11
[CI] Add Python 3.11 to test matrices
2 parents 99bbe6f + 0f10340 commit 78a8d71

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fail-fast: False
3838
matrix:
3939
os: [ubuntu-20.04]
40-
python-version: [3.8, 3.9, '3.10']
40+
python-version: [3.8, 3.9, '3.10', '3.11']
4141
tox_env: [orange-released]
4242
name: [Released]
4343
include:
@@ -116,7 +116,7 @@ jobs:
116116
fail-fast: false
117117
matrix:
118118
os: [macos-latest, windows-latest]
119-
python-version: [3.8, 3.9, '3.10']
119+
python-version: [3.8, 3.9, '3.10', '3.11']
120120
tox_env: [orange-released]
121121
name: [Released]
122122
include:

Orange/tests/test_txt_reader.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Test methods with long descriptive names can omit docstrings
22
# pylint: disable=missing-docstring
3-
3+
import sys
44
import unittest
55
from tempfile import NamedTemporaryFile
66
import os
@@ -86,15 +86,19 @@ def test_read_csv_with_na(self):
8686
self.assertIsInstance(f1, ContinuousVariable)
8787
self.assertIsInstance(f2, DiscreteVariable)
8888

89-
def test_read_nonutf8_encoding(self):
89+
@unittest.skipIf(
90+
sys.version_info >= (3, 11), 'csv supports null bytes in 3.11'
91+
)
92+
def test_read_binary_blob(self):
9093
with self.assertRaises(ValueError) as cm:
91-
data = Table(test_filename('datasets/binary-blob.tab'))
94+
Table(test_filename('datasets/binary-blob.tab'))
9295
self.assertIn('NUL', cm.exception.args[0])
9396

97+
def test_read_nonutf8_encoding(self):
9498
with self.assertRaises(ValueError):
9599
with warnings.catch_warnings():
96100
warnings.filterwarnings('error')
97-
data = Table(test_filename('datasets/invalid_characters.tab'))
101+
Table(test_filename('datasets/invalid_characters.tab'))
98102

99103
def test_noncontinous_marked_continuous(self):
100104
file = NamedTemporaryFile("wt", delete=False)

0 commit comments

Comments
 (0)