mirror of https://github.com/apache/cassandra
In cqlshlib tests, don't overwrite the environment and improve hostname matching
patch by Jacek Lewandowski; reviewed by Mick Semb Wever for CASSANDRA-16409
This commit is contained in:
parent
f4be27fd07
commit
91cb934e25
|
|
@ -52,7 +52,7 @@ class CqlshCompletionCase(BaseTestCase):
|
|||
remove_db()
|
||||
|
||||
def setUp(self):
|
||||
env = os.environ
|
||||
env = os.environ.copy()
|
||||
env['COLUMNS'] = '100000'
|
||||
if (locale.getpreferredencoding() != 'UTF-8'):
|
||||
env['LC_CTYPE'] = 'en_US.utf8'
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class TestCqlshOutput(BaseTestCase):
|
|||
remove_db()
|
||||
|
||||
def setUp(self):
|
||||
env = os.environ
|
||||
env = os.environ.copy()
|
||||
env['COLUMNS'] = '100000'
|
||||
# carry forward or override locale LC_CTYPE for UTF-8 encoding
|
||||
if (locale.getpreferredencoding() != 'UTF-8'):
|
||||
|
|
@ -737,7 +737,7 @@ class TestCqlshOutput(BaseTestCase):
|
|||
ringinfo_re = r'''
|
||||
Range[ ]ownership: \n
|
||||
(
|
||||
[ ] .*? [ ][ ] \[ / ( \d+ \. ){3} \d+ : \d+ \] \n
|
||||
[ ] .*? [ ][ ] \[ .*? / ( \d+ \. ){3} \d+ : \d+ \] \n
|
||||
)+
|
||||
\n
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in New Issue