First time contribution, tests fails.

31 views
Skip to first unread message

Yaşar Arabacı

unread,
Sep 28, 2011, 9:30:15 PM9/28/11
to django-d...@googlegroups.com
Hi,

I have accepted https://code.djangoproject.com/ticket/16519 . Before I started doing something, I tried to run tests. I thought tests/runtests.py would run all tests, but I am getting this error:

permission_protected_view_exception = permission_required('modeltests.test_perm', raise_exception=True)(_permission_protected_view)
TypeError: permission_required() got an unexpected keyword argument 'raise_exception'

Is there something that I am doing wrong, or this is something expected (known bug?). How should I procede. Should I make my changes? or try to fix tests?

--
http://yasar.serveblog.net/

Simon Charette

unread,
Sep 28, 2011, 9:50:29 PM9/28/11
to django-d...@googlegroups.com
Hi Yasar!

Are you sure you're at the latest trunk revision? (16911)

I'm not getting any failures with this revision and the test_sqlite settings?

http://dpaste.com/623028/

Sebastian Goll

unread,
Sep 28, 2011, 9:46:38 PM9/28/11
to django-d...@googlegroups.com

Are you sure that you are using the right version of Django to run the tests?

Try setting PYTHONPATH to the path of your local copy of the SVN repository.

Sebastian.

Yaşar Arabacı

unread,
Sep 29, 2011, 6:17:34 AM9/29/11
to django-d...@googlegroups.com
Ok, I got it working. Thanks. It was my fault. I guess I have been trying this without sourcing virtualenv.

2011/9/29 Sebastian Goll <sebasti...@gmx.de>

--
You received this message because you are subscribed to the Google Groups "Django developers" group.
To post to this group, send email to django-d...@googlegroups.com.
To unsubscribe from this group, send email to django-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.




--
http://yasar.serveblog.net/

Reply all
Reply to author
Forward
0 new messages