diff options
author | Jeff Widman <jeff@jeffwidman.com> | 2018-10-27 00:11:10 -0700 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2018-10-27 02:17:23 -0700 |
commit | f00016e7cec64cfc9697b233809cd37e0e19cc64 (patch) | |
tree | 37d1d290b86c1e8e97776c1bd344261743cc04e4 /test/test_producer.py | |
parent | 1945ad16a15f53a07fae489b20ac616bb184ca89 (diff) | |
download | kafka-python-f00016e7cec64cfc9697b233809cd37e0e19cc64.tar.gz |
Cleanup fixture imports
`random_string` now comes from `test.fixtures` and was being
transparently imported via `test.testutil` so this bypasses the
pointless indirect import.
Similarly, `kafka_version` was transparently imported by `test.testutil`
from `test.fixtures`.
Also removed `random_port()` in `test.testutil` because its unused as its been replaced
by the one in `test.fixtures`.
This is part of the pytest migration that was started back in
a1869c4be5f47b4f6433610249aaf29af4ec95e5.
Diffstat (limited to 'test/test_producer.py')
-rw-r--r-- | test/test_producer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_producer.py b/test/test_producer.py index 176b239..16da618 100644 --- a/test/test_producer.py +++ b/test/test_producer.py @@ -8,7 +8,7 @@ import pytest from kafka import KafkaConsumer, KafkaProducer, TopicPartition from kafka.producer.buffer import SimpleBufferPool from test.conftest import version -from test.testutil import random_string +from test.fixtures import random_string def test_buffer_pool(): |