File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 11# Test methods with long descriptive names can omit docstrings
22# pylint: disable=missing-docstring
3-
3+ import sys
44import unittest
55from tempfile import NamedTemporaryFile
66import 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 )
You can’t perform that action at this time.
0 commit comments