Permalink
Browse files

Fix some path issues with “python3 setup.py test”.

  • Loading branch information...
1 parent a559af0 commit 81fc7093c5659ec5c67daa0378b4ef28b8bbba8c @ajdavis ajdavis committed Dec 19, 2013
Showing with 5 additions and 2 deletions.
  1. +0 −1 setup.cfg
  2. +5 −1 setup.py
View
@@ -2,4 +2,3 @@
verbosity=2
detailed-errors=1
with-xunit=1
-py3where=build/lib
View
@@ -36,7 +36,11 @@
kwargs['use_2to3'] = True
packages = ['motor']
+if 'test' in sys.argv:
+ sys.argv.remove('test')
+ sys.argv.append('nosetests')
+if 'nosetests' in sys.argv:
packages.append('test')
pymongo_url = (
@@ -62,7 +66,7 @@
keywords=[
"mongo", "mongodb", "pymongo", "gridfs", "bson", "motor", "tornado",
],
- # use 'python setup.py test' to test
+ # Use 'python setup.py test' or 'python setup.py nosetests' to test.
setup_requires=['nose'],
test_suite='nose.main',
zip_safe=False,

0 comments on commit 81fc709

Please sign in to comment.