[
https://issues.apache.org/jira/browse/CASSANDRA-18880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769600#comment-17769600
]
Brandon Williams commented on CASSANDRA-18880:
----------------------------------------------
That makes sense, but I don't think a function should replace itself with an
attribute of the same name whose value is the static output of the function.
It would be more pythonic to use attributes instead of the functions with
static output, like
[this|https://github.com/driftx/cassandra-dtest/commit/c32c5f1a6248dfe0c623a86fe9b7332f9c2be2d5]
([smoke
test|https://app.circleci.com/pipelines/github/driftx/cassandra/1304/workflows/caf14e3f-3e30-40aa-a5dd-7caebcc76769/jobs/54913])
> Test failure:
> dtest-novnode.transient_replication_test.TestTransientReplicationRepairStreamEntireSSTable.test_optimized_primary_range_repair_with_lcs
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-18880
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18880
> Project: Cassandra
> Issue Type: Bug
> Components: Test/dtest/python
> Reporter: Ekaterina Dimitrova
> Assignee: Ekaterina Dimitrova
> Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> https://ci-cassandra.apache.org/job/Cassandra-trunk/1718/testReport/dtest-novnode.transient_replication_test/TestTransientReplicationRepairStreamEntireSSTable/test_optimized_primary_range_repair_with_lcs/
> {code:java}
> Error Message
> failed on setup with "TypeError: 'list' object is not callable"
> Stacktrace
> self =
> <transient_replication_test.TestTransientReplicationRepairStreamEntireSSTable
> object at 0x7f4b3a4e4ac0> fixture_dtest_setup = <dtest_setup.DTestSetup
> object at 0x7f4b3a583250> @pytest.fixture(scope='function', autouse=True) def
> setup_cluster(self, fixture_dtest_setup): > self.tokens = self.tokens() E
> TypeError: 'list' object is not callable transient_replication_test.py:206:
> TypeError
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]