Comments (10)
On 4/11/13 3:01 PM, Valentin Haenel wrote:
These days I tend to do most of my testing with |nosetests| for
discovery and test functions provided by |nose.tools|.
Regarding this, frankly, I would like to keep the requirements as
lightweight as possible, so I would not require nose. If we have to use
test units, let's use just what is included in the standard Python
library (i.e. unittest).
How would you prefer to add more tests? I would propose using a file
|test_blosc.py| with simple test functions.
Yes, that would be good. Then perhaps we can add a blosc.test() that
can run the tests interactively.
Francesc Alted
from python-blosc.
Ok, let's keep it simple then. If anyone wants the can always use the nosetest
runner anyway. Also, we need to make sure to use only the testing constructs available in 2.6. IIRC there has been quiet a few additions unittest
in 2.7.
from python-blosc.
On 4/11/13 3:35 PM, Valentin Haenel wrote:
Ok, let's keep it simple then. If anyone wants the can always use the
|nosetest| runner anyway. Also, we need to make sure to use only the
testing constructs available in 2.6. IIRC there has been quiet a few
additions |unittest| in 2.7.
Well, another possibility is to require Python 2.7 for the forthcoming
release. This would open the door to use memoryviews inside too.
Francesc Alted
from python-blosc.
Would fit quite nicely with the new 2.7.4 which was released 5 days ago. On the other hand, I did backport Bloscpack to 2.6 quite some time ago. If you think we will not loose users by requiring 2.7, then we should move forwards.
from python-blosc.
Well, we really need to go with a Python version released 5 days ago?
If so, I think it is better to stay with 2.6. It should not be that
grave to come up with some tests in pure unittest :)
On 4/11/13 4:53 PM, Valentin Haenel wrote:
Would fit quite nicely with the new 2.7.4 which was released 5 days
ago. On the other hand, I did backport Bloscpack to 2.6 quite some
time ago. If you think we will not loose users by requiring 2.7, then
we should move forwards.β
Reply to this email directly or view it on GitHub
https://github.com/FrancescAlted/python-blosc/issues/24#issuecomment-16239524.
Francesc Alted
from python-blosc.
We could use the unittest2
package which is a backport of the Python 2.7 features to 2.6 (and beyond):
https://pypi.python.org/pypi/unittest2
from python-blosc.
see: #32 for an initial stub.
from python-blosc.
Can probably close this for now, as #32 has been merged. More testing, esp. of the c-extension can always be added in a later PR.
from python-blosc.
Yes. I'm adding some more checks on parameters in toplevel.py so that we can get rid of these checks in the C extension.
Impressive job, as always. Thanks a bunch! (BTW, are you attached to a keyboard?)
from python-blosc.
@FrancescAlted well, this project is my top priority right now, so I can just make time for it. Haven't had this much fun coding for a long time. BTW: probably makes sense to address #29 in this context, since we can now safely refactor -- given the unit tests. Ahhhhh, the joy of working according to best practices. π π π
from python-blosc.
Related Issues (20)
- Issues decompressing bytes from files HOT 1
- Replace obsolete `popen2` HOT 1
- Properly identify vendored `cpuinfo.py` version
- Blosc_ROOT cmake warning: Policy CMP0074 is not set HOT 2
- "RuntimeError: Cannot decompress" for a compressed sequence of more than 7240 zero bytes HOT 1
- Very bad compression on short inputs 1-127 bytes long HOT 5
- βpython_requiresβ should be set with β>=3.6β, as blosc 1.10.6 is not compatible with all Python versions. HOT 2
- wrong setuptools build command
- Concatenate two blosc compressed bytes objects HOT 2
- LICENSES/BLOSC.txt HOT 4
- Rename default branch HOT 1
- Update pypi with latest blosc version HOT 3
- Wheel for Python 3.10 and Python 3.11 HOT 3
- Cannot install blosc 1.11.0 on apple M1 machine HOT 3
- decompress in fore-end HOT 1
- README link to python-blosc2 seems useful HOT 1
- __pack_tensor__ must be made portable and not depend on Python HOT 2
- __pack_tensor__ should be in the beginning of the file to avoid seeking the whole file HOT 2
- Python 3.12 compatibility HOT 6
- Numpy 2 compatibility
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 python-blosc.