Comments (9)
neither skips nor fails for me:
$> venv/bin/python /usr/bin/nosetests -v duecredit/tests/test_io.py
duecredit.tests.test_io.test_import_doi ... ok
duecredit.tests.test_io.test_pickleoutput ... ok
duecredit.tests.test_io.test_text_output ... ok
duecredit.tests.test_io.test_text_output_dump_formatting ... ok
----------------------------------------------------------------------
Ran 4 tests in 0.023s
OK
$> git describe
0.2.2-12-g903c496
and I remember fixing smth like that recently -- are you sure you are on up to date master? ;)
from duecredit.
r is it my better python?
$> python --version
Python 2.7.10
from duecredit.
doh -- that was about different test module, but the observation stands:
$> venv/bin/python /usr/bin/nosetests -sv duecredit/tests/test_utils.py
duecredit.tests.test_utils.test_external_versions_basic ... ok
duecredit.tests.test_utils.test_external_versions_unknown ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('scipy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('numpy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('mvpa2',) ... SKIP: External mvpa2 not present
duecredit.tests.test_utils.test_external_versions_popular_packages('sklearn',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('statsmodels',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('pandas',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('matplotlib',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('psychopy',) ... fatal: Not a git repository (or any of the parent directories): .git
ok
----------------------------------------------------------------------
Ran 10 tests in 0.439s
OK (SKIP=1)
so those which it skips for me it skips for a valid reason
from duecredit.
yep up to date...
(duecredit)contematto@talete ~/github/duecredit (master*) $ python --version
Python 2.7.6
(duecredit)contematto@talete ~/github/duecredit (master*) $ nosetests -s -v duecredit/tests/test_utils.py
Failure: SyntaxError (unqualified exec is not allowed in function '_test_external' it is a nested function (test_utils.py, line 57)) ... ERROR
======================================================================
ERROR: Failure: SyntaxError (unqualified exec is not allowed in function '_test_external' it is a nested function (test_utils.py, line 57))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/contematto/virtualenv/duecredit/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Users/contematto/virtualenv/duecredit/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/contematto/virtualenv/duecredit/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
SyntaxError: unqualified exec is not allowed in function '_test_external' it is a nested function (test_utils.py, line 57)
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1)
(duecredit)contematto@talete ~/github/duecredit (master*) $ git describe
0.2.2-12-g903c496
but it works with python 2.7.9
contematto@talete ~/github/duecredit (master*) $ python --version
Python 2.7.9 :: Anaconda 2.3.0 (x86_64)
contematto@talete ~/github/duecredit (master*) $ nosetests -s -v duecredit/tests/test_utils.py
duecredit.tests.test_utils.test_external_versions_basic ... ok
duecredit.tests.test_utils.test_external_versions_unknown ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('scipy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('numpy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('mvpa2',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('sklearn',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('statsmodels',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('pandas',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('matplotlib',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('psychopy',) ... SKIP: External psychopy not present
----------------------------------------------------------------------
Ran 10 tests in 1.190s
OK (SKIP=1)
from duecredit.
so we should skip the test on that particular version of python. Is that the base python on OSX?
from duecredit.
I believe so
from duecredit.
make it happen! ;)
from duecredit.
Will do
On Thu, Jul 30, 2015, 7:00 PM Yaroslav Halchenko [email protected]
wrote:
make it happen! ;)
—
Reply to this email directly or view it on GitHub
#26 (comment).
from duecredit.
For some reason now it works, without any changes...
(duecredit)contematto@talete ~/github/duecredit (master*) $ nosetests -s -v duecredit/tests/test_utils.py
duecredit.tests.test_utils.test_external_versions_basic ... ok
duecredit.tests.test_utils.test_external_versions_unknown ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('scipy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('numpy',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('mvpa2',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('sklearn',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('statsmodels',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('pandas',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('matplotlib',) ... ok
duecredit.tests.test_utils.test_external_versions_popular_packages('psychopy',) ... SKIP: External psychopy not present
----------------------------------------------------------------------
Ran 10 tests in 1.091s
OK (SKIP=1)
(duecredit)contematto@talete ~/github/duecredit (master*) $ python --version
Python 2.7.6
from duecredit.
Related Issues (20)
- Integration with citepy CSL data classes HOT 3
- References are not deduplicated in a bibtex summary HOT 3
- Ci testing fails
- How to cite duecredit? HOT 5
- Use DueCredit for data files HOT 2
- Deprecation warning for due credit. HOT 3
- [wishlist] interface to templating engines (e.g. ninja) to provide users a flexible way to render reports
- [wishlist] option (env var) to not load existing .duecredit.p upon start
- Help adding duecredit HOT 20
- Enable duecredit by default, but without injections
- SciPy injection is outdated HOT 3
- Switch from WARNING to DEBUG for outdated injections etc
- Best practices for integrating conditional dcite decorators into Nipype workflows? HOT 2
- DueCredit internal failure while running <function DueSwitch.dump ... on Windows 10 HOT 5
- Improve usage in Jupyter HOT 2
- Internal error: Both inactive and active collectors should be provided HOT 1
- [wishlist] Can duecredit be exported as codemeta? HOT 1
- DueCredit `cite()` doesn't work and `dcite()` works, but not always HOT 5
- Duecredit API HOT 1
- inactively `@due.dcite`-decorated classes become unpicklable
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 duecredit.