Here is my example of testing PyZMQ client and server code with pytest and pytest-mock. I haven't found much information on this topic. Anyone else have examples of testing PyZMQ code? https://gavinw.me/pythonic/pyzmq/test-client-server.html
Here is my example of testing PyZMQ client and server code with pytest and pytest-mock. I haven't found much information on this topic. Anyone else have examples of testing PyZMQ code? https://gavinw.me/pythonic/pyzmq/test-client-server.html
Dzisiejszy ból głowy: #pyzmq sypie się z:
TypeError: '<' not supported between instances of 'str' and 'int'
przy wywołaniu:
./setup.py build_ext -j12
ale tylko w niektórych środowiskach.
Okazało się, że błąd pochodzi z klasy UnixCCompiler nadpisanej przez numpy. Nadpisywanie występuje tylko jeśli Cython i Pythran są dodatkowo zainstalowane (Cython opcjonalnie importuje Pythrana, Pythran importuje numpy.distutils).
Teraz pozostaje jeszcze znaleźć rozwiązanie tego problemu.
https://github.com/zeromq/pyzmq/pull/1872#issuecomment-1571865918
Call the finalize_options() method of overridden distutils commands before running the configure command, in order to fix errors due to unconfigured --jobs option. This can be reproduced by runnin...
Today's headache: #pyzmq fails with:
TypeError: '<' not supported between instances of 'str' and 'int'
if you call:
./setup.py build_ext -j12
but only in some environments.
It turned out that the error comes from numpy overriding UnixCCompiler, and the override only happens if both Cython and Pythran are installed in addition to numpy (Cython optonally imports Pythran, and Pythran imports numpy.distutils).
Now how to resolve that…
https://github.com/zeromq/pyzmq/pull/1872#issuecomment-1571865918
Call the finalize_options() method of overridden distutils commands before running the configure command, in order to fix errors due to unconfigured --jobs option. This can be reproduced by runnin...