mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.11' into cassandra-4.0
This commit is contained in:
commit
bb5b2d2889
|
|
@ -37,8 +37,8 @@ from .util import UTC
|
|||
|
||||
is_win = platform.system() == 'Windows'
|
||||
|
||||
unicode_controlchars_re = re.compile(r'[\x00-\x31\x7f-\xa0]')
|
||||
controlchars_re = re.compile(r'[\x00-\x31\x7f-\xff]')
|
||||
unicode_controlchars_re = re.compile(r'[\x00-\x1f\x7f-\xa0]')
|
||||
controlchars_re = re.compile(r'[\x00-\x1f\x7f-\xff]')
|
||||
|
||||
|
||||
def _show_control_chars(match):
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import subprocess
|
|||
|
||||
from .basecase import BaseTestCase
|
||||
from .cassconnect import (get_cassandra_connection, create_keyspace, testrun_cqlsh)
|
||||
from cqlshlib.formatting import unicode_controlchars_re
|
||||
|
||||
|
||||
class TestCqlshUnicode(BaseTestCase):
|
||||
|
|
@ -73,3 +74,6 @@ class TestCqlshUnicode(BaseTestCase):
|
|||
self.assertIn(v1, output)
|
||||
output = c.cmd_and_response('DESC TYPE "%s";' %(v1,))
|
||||
self.assertIn(v2, output)
|
||||
|
||||
def test_unicode_esc(self): # CASSANDRA-17617
|
||||
self.assertFalse(unicode_controlchars_re.match("01"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue