Giter VIP home page Giter VIP logo

Comments (1)

twm avatar twm commented on June 3, 2024

We are currently running the tests against 3.6. I ran the unit tests against 3.7 and hit this failure (presumably PEP 479):

======================================================================
ERROR: test_decode_message_set_stop_iteration (afkak.test.test_kafkacodec.TestKafkaCodec)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../afkak/kafkacodec.py", line 133, in _decode_message_set_iter
    ((offset, ), cur) = relative_unpack('>q', data, cur)
  File ".../afkak/_util.py", line 155, in relative_unpack
    raise BufferUnderflowError("Not enough data left")
afkak.common.BufferUnderflowError: Not enough data left

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../afkak/kafkacodec.py", line 153, in _decode_message_set_iter
    raise StopIteration()
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File ".../afkak/test/test_kafkacodec.py", line 323, in test_decode_message_set_stop_iteration
    msgs = list(KafkaCodec._decode_message_set_iter(encoded))
RuntimeError: generator raised StopIteration

I'll fix this right away.

Note that Python 3 support is only present in master at the moment. I want to merge #51 before issuing a 3.0 as it is a major change with public API impact (it requires changing things that are public API surface but probably shouldn't have been). We are using a snapshot of current master internally without issue, but that is on Python 2.7.

from afkak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.