tests: skip test_null_byte after python 3.11 (#84824)
gitea/authentic/pipeline/head This commit looks good
Details
gitea/authentic/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3b6fdd183a
commit
293347c86b
|
@ -17,6 +17,7 @@
|
|||
|
||||
import codecs
|
||||
import io
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
from django.contrib.auth.hashers import check_password, make_password
|
||||
|
@ -99,6 +100,7 @@ def test_bad_csv_encoding(profile):
|
|||
assert importer.error == Error('bad-encoding')
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.version_info >= (3, 11), reason='python 3.11 csv module handles null bytes')
|
||||
def test_null_byte(profile):
|
||||
importer = CsvImporter()
|
||||
assert not importer.run(b'email key,first_name\n1,\x00', 'ascii')
|
||||
|
|
Loading…
Reference in New Issue