New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 fixes #103
Python 3 fixes #103
Conversation
Requires https://bitbucket.org/aaugustin/south-python3 to run the tests |
Any progress here? I am trying to test one of my apps in Python 3 but I use django_nose testrunner which fails in Python 3. |
Do you have any error information or stack traces you can show? Any progress here? I am trying to test one of my apps in Python 3 but I use — |
django-nose has syntax errors which are incompatible with Python3. My initial question was regarding the progress of merging this pull request into django-nose core since it seems to solve all the compatibility issues. As requested here is a stack trace. In order to get it you don't even have to try to run the testrunner. I get it even during django-nose install:
Obviously due to syntax error the testrunner would not run even though django-nose installs. To test the pull request, I did the following:
As you can see the installation goes fine. I also ran the tests for my app and everything went fine as well. So this pull request seems to solve the Python 3 compatibility issues. |
are we able to achieve python3 compatibility without breaking python25 compatibility? Some people might be using it still. |
Have you guys tried my patch? |
@jonashaag I did and it works fine in Python 3.3 (illustrated here). Thanx @fabiosantoscode I think it's possible but it makes things much more complicated. But in general I don't think it's an issue because as of 1.5, Django no longer supports Python 2.5 (release notes). Is this the only hold-up for merging this pull request? |
I haven't tried the patch yet because I am still on django 1.4 and Python 2. I'll try it out now though. |
@jonashaag The patch looks good to me. I have tested it on Python 3.3 and 2.7.3 with Django 1.5. @miki725 I know python 25 support was dropped. I was only speculating. I think Python 3 support should be a priority, but I don't call the shots. |
I've found that test --with-profile works not. I get:
The python2 version works correctly, but I don't know if this is a bug in this patch. |
Fixed with a mix of this patch and the patch from #127 in cff3b1c...4908503 |
Makes django-nose Django1.5/Python3 compatible. Includes some changes automatically made by
2to3
that are not required for Python2 but don't hurt either (assuming only Python >= 2.6 compatibility is required). This way it's not necessary to run2to3
on the codebase.