tests: skip test_null_byte after python 3.11 (#84824)
gitea/authentic/pipeline/head This commit looks good Details

This commit is contained in:
Benjamin Dauvergne 2023-12-18 07:52:29 +01:00
parent 3b6fdd183a
commit 293347c86b
1 changed files with 2 additions and 0 deletions

View File

@ -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')