Comments (6)
is there any simple way to run tests on windows?
Sure. I had an old Windows 10 VM kicking around, so I installed Python 3.3 on it using http://www.python.org/ftp/python/3.3.5/python-3.3.5.amd64.msi, then tested the following, and it worked like a charm:
git clone https://github.com/jab/bidict.git
cd bidict
python -m pip install -e .[dev]
python -m pytest
IEUser@IE11WIN10 MINGW64 ~/bidict (master)
$ /c/Python33/python.exe -m pytest
============================= test session starts =============================
platform win32 -- Python 3.3.5, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 -- C:\Python33\python.exe
cachedir: .cache
benchmark: 3.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=5.00us max_time=1.00s calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: C:\Users\IEUser\bidict, inifile: pytest.ini
plugins: hypothesis-3.4.2, benchmark-3.0.0, cov-2.2.1
collecting ... collected 233 items
bidict/util.py::bidict.util.pairs PASSED
tests/test_benchmark.py::test_put_nodup[bidict] PASSED
tests/test_benchmark.py::test_put_nodup[orderedbidict] PASSED
tests/test_benchmark.py::test_put_withdup[bidict] PASSED
tests/test_benchmark.py::test_put_withdup[orderedbidict] PASSED
tests/test_benchmark.py::test_update_nodup[bidict] PASSED
tests/test_benchmark.py::test_update_nodup[orderedbidict] PASSED
tests/test_benchmark.py::test_update_withdup[bidict] PASSED
tests/test_benchmark.py::test_update_withdup[orderedbidict] PASSED
tests/test_benchmark.py::test_forceupdate_withdup[bidict] PASSED
tests/test_benchmark.py::test_forceupdate_withdup[orderedbidict] PASSED
tests/test_bidict.txt PASSED
tests/test_frozenbidict.txt PASSED
tests/test_hypothesis.py::test_equality[bidict] PASSED
tests/test_hypothesis.py::test_equality[loosebidict] PASSED
tests/test_hypothesis.py::test_equality[looseorderedbidict] PASSED
tests/test_hypothesis.py::test_equality[orderedbidict] PASSED
tests/test_hypothesis.py::test_equality[frozenbidict] PASSED
tests/test_hypothesis.py::test_equality[frozenorderedbidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[bidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[loosebidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[looseorderedbidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[orderedbidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[frozenbidict] PASSED
tests/test_hypothesis.py::test_bidirectional_mappings[frozenorderedbidict] PASSE D
tests/test_hypothesis.py::test_consistency_after_mutation[bidict-0-clear] PASSED
...
========= 221 passed, 12 skipped, 1 pytest-warnings in 40.26 seconds ==========
So that also demonstrates that the tests pass with Python 3.3.
Looks like you tried running the tests with py.test tests
. Note that there is already a pytest.ini file which specifies the test paths (and other options), so there's no need to pass the tests
argument.
Based on the py.test: error: unrecognized arguments: --benchmark-save-data...
error you're seeing, perhaps pytest-benchmark did not get installed successfully either? That should have been installed by the pip install -e .[dev]
command (thanks to extras_require
and tests_require
in the setup.py).
Regarding Python 3.3, in case you didn't see it in https://bidict.readthedocs.io/en/master/changelog.html#id2, I no longer support 3.3 officially (though it may continue to work). That was inspired by this message by the author of Hypothesis:
I dropped 3.3 support in 2.0, it just unofficially worked.
I've just accepted a patch to add the enum34 dependency on 3.3 too, but be warned that you are in unofficial support territory and there may be dragons*. :-)
My official recommendation is to do one of not run Hypothesis based tests on 3.3 or to also drop 3.3 support because barely anyone actually cares about 3.3, but you could also just install enum34 for your tests.
Hope this helps, thanks for your interest in bidict, and welcome to the community! What are you using bidict for? I'm always interested in getting to know bidict's users and their use cases better, and supporting them as much as I can, so feel free to keep me posted on how things are working for you.
from bidict.
from bidict.
@bialix Any luck?
from bidict.
Yes, thanks
(*) Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range)
from 1st Quartile and 3rd Quartile.
========= 221 passed, 12 skipped, 1 pytest-warnings in 34.18 seconds
2016-08-15 6:20 GMT+03:00 jab [email protected]:
@bialix https://github.com/bialix Any luck?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#39 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFEG9mJMKGORaJ5vQVZ2LbtbqtGcn93ks5qf9sWgaJpZM4Jh_2o
.
from bidict.
Great.
On Monday, August 22, 2016, bialix [email protected] wrote:
Yes, thanks
(*) Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range)
from 1st Quartile and 3rd Quartile.========= 221 passed, 12 skipped, 1 pytest-warnings in 34.18 seconds
2016-08-15 6:20 GMT+03:00 jab <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>:@bialix https://github.com/bialix Any luck?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#39 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/
AAFEG9mJMKGORaJ5vQVZ2LbtbqtGcn93ks5qf9sWgaJpZM4Jh_2o>
.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#39 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD94Bz-JvmjTEtCFvsOnHOsGNPPOzh7ks5qiVMcgaJpZM4Jh_2o
.
from bidict.
https://ci.appveyor.com/project/jab/bidict
from bidict.
Related Issues (20)
- global name 'BidirectionalMapping' is not defined HOT 21
- github git tags out of sync since 0.18.4 HOT 3
- Missing __all__ in bidict/__init__.py leads to implicit reexport error with mypy in strict mode. HOT 9
- logo HOT 5
- Dependency Dashboard
- Type hints for Bidict type HOT 2
- Try slipcover HOT 1
- Maybe use nix for devcontainer and GHA “tests” workflow
- Why it returns None when I use bidict?
- Will you add a persistence method? HOT 1
- Improve OpenSSF Scorecard HOT 6
- Swap syntax does not work HOT 4
- Automate upgrading dev dependencies HOT 1
- Type alias definition for `MISSING` results in type violations HOT 1
- test fails with python3.12 HOT 3
- Remove dead batteries
- 0.22.1: temp directory in source tree trashes build HOT 6
- 0.22.1: sphinx warnings `reference target not found` HOT 6
- mypy type inference change in 0.23.0 HOT 12
- Recommended performant alt for `namedbidict` HOT 2
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 bidict.