[ 
https://issues.apache.org/jira/browse/CASSANDRA-16409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273485#comment-17273485
 ] 

Jacek Lewandowski commented on CASSANDRA-16409:
-----------------------------------------------

The fixes are minimal for Linux based OS. I tried on MacOS with no success, it 
looks like everything works differently on Mac.

Note for running CQLSH tests - they should be run with a fixed Python 
environment, 3.9.x I guess because those tests are compatible with Python 3. We 
should not run them using Python2. Now, if we want to test CQLSH running with 
different Python versions, we should do that by exporting 
{{CQLSH_PYTHON=<python_executable>}} instead of running those tests with 
different environments. We need to clearly separate which Python is used for 
running the tests (this should be fixed on Python 3.9+) and against which 
Python version we run the the underlying CQLSH process.

Given the above note, I've tested locally on Ubuntu, with virtual env = 3.9.1 
and:
{noformat}
CQLSH_PYTHON=python2.7 nosetests
CQLSH_PYTHON=python3.6 nosetests
CQLSH_PYTHON=python3.7 nosetests
CQLSH_PYTHON=python3.8 nosetests
CQLSH_PYTHON=python3.9 nosetests
{noformat}

Note that without the attached fix, some tests are failing because of either 
the environment being overwritten by tests or by hostname mismatch (too strict 
regexp).


> Bugs in CQLSH tests
> -------------------
>
>                 Key: CASSANDRA-16409
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16409
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter, Test/dtest/python
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> There are some bugs in Python CQLSH tests which causes problems when testing 
> in some environments - it hit me when I tried to test that on Mac. In 
> particular the tests seem to be sensitive to terminal settings and Python 
> version (and it seems like the operating system too). 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to