Comments (3)
Crap, that's honestly probably just a bug in the test itself, due to the transition from buffer objects to memoryview objects in Python 2.7.
This test is for doing non-copying sends of data in numpy arrays.
numpy's A.data returns a buffer, while pyzmq uses memoryview objects in Python 2.7, and the two are not identical.
If you replace:
self.assertEquals(A.data, m.buffer)
B = numpy.frombuffer(m.buffer,dtype=A.dtype).reshape(A.shape)
with
self.assertEquals(memoryview(A), m.buffer)
B = numpy.array(m.buffer, dtype=A.dtype).reshape(A.shape)
and it passes, then there should be no problem.
Maybe we should not start using memoryviews until 3.0, though, and stick with buffers in 2.7.
from pyzmq.
All tests pass with proposed changes.
I leave the ticket open in case you want to follow up. Feel free to close otherwise.
from pyzmq.
fix non-copying numpy test for Python >= 2.7
closed by deab582
from pyzmq.
Related Issues (20)
- FEATURE + MR: Advertise newer python versions
- Why does the wheel package on pypi not support IPC on windows 10? HOT 2
- BUG: asyncio: memory leak in socket.poll HOT 1
- Release 25.1 with Python 3.12 wheels
- [lint] abstract class instantiated HOT 2
- BUG: Older versions of setuptools no longer work HOT 7
- BUG: windows arm64 support HOT 12
- libzmq question: ROUTER/DEALER mod restart DEALER only will cause Host unreachable Error HOT 7
- BUG: `try_passwordless_ssh` hangs while connecting to server HOT 2
- RFE: is it possible to restart making github releases?🤔 HOT 6
- unable to build on mac m1 max HOT 11
- BUG: Missing zmq.NOTIFY_CONNECT and zmq.NOTIFY_DISCONNECT constants HOT 6
- BUG: zmq hangs forever if attempting to send a message before socket has time to connect HOT 1
- BUG: Unable to install in mac m1 HOT 1
- build fairure with cython default bnanch
- BUG: Asyncio cancellation race condition leaves Future exception never retrieved for recv_string() HOT 2
- Not able to build wheels for pyzmq HOT 12
- BUG: Memory leak on receiver side in asyncio HOT 3
- BUG: pyzmq v26 installation fails (build from sources) HOT 8
- BUG: Error compiling wheels using crossenv HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyzmq.