[
https://issues.apache.org/jira/browse/CASSANDRA-17413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17501241#comment-17501241
]
Stefan Miklosovic commented on CASSANDRA-17413:
-----------------------------------------------
the tests are failing for me:
{code}
self = <cqlshlib.test.test_cqlsh_output.TestCqlshOutput
testMethod=test_timestamp_output>
def test_timestamp_output(self):
env = self.default_env
env['TZ'] = 'Etc/UTC'
self.assertQueriesGiveColoredOutput((
('''select timestampcol from has_all_types where num = 0;''', """
timestampcol
MMMMMMMMMMMM
---------------------------------
2012-05-14 12:53:20.000000+0000
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
(1 rows)
nnnnnnnn
"""),
), env=env)
try:
env['TZ'] = 'America/Sao_Paulo'
> self.assertQueriesGiveColoredOutput((
('''select timestampcol from has_all_types where num = 0;''',
"""
timestampcol
MMMMMMMMMMMM
---------------------------------
2012-05-14 09:53:20.000000-0300
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG
(1 rows)
nnnnnnnn
"""),
), env=env)
test/test_cqlsh_output.py:406:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
test/test_cqlsh_output.py:100: in assertQueriesGiveColoredOutput
self.assertEqual(outputline.plain().rstrip(), plain)
E AssertionError: ' 2012-05-14 12:53:20.000000+0000' != ' 2012-05-14
09:53:20.000000-0300'
E - 2012-05-14 12:53:20.000000+0000
E ? ^^ ^ ^
E + 2012-05-14 09:53:20.000000-0300
E ? ^^ ^ ^
=============================================================================================================================
warnings summary
=============================================================================================================================
test/run_cqlsh.py:33
{code}
> Remove unused imports
> ---------------------
>
> Key: CASSANDRA-17413
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17413
> Project: Cassandra
> Issue Type: Task
> Components: CQL/Interpreter
> Reporter: Brad Schoening
> Assignee: Brad Schoening
> Priority: Normal
> Fix For: 4.x
>
>
> Python3 no longer requires the import of unicode_literals from futures. This
> and a few other unused imports, should be removed.
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]