#3625: Test fixtures cause load_data to fail with Python 2.3
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jacob
Status: new | Component: Uncategorized
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------------------+----------------------------------------
Database sync (sqlite) fails when trying to load initial data (in this
case there is none). The error appears to stem from rsplit which is used
in source:trunk/django/core/management.py and was introduced in [4659]
with the test fixtures framework. I'm using the stock OS X Python (2.3.5)
over here and I believe this function was introduced in 2.4.
Error:
{{{
Loading 'initial_data' fixtures...
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/django/core/management.py", line 1663, in execute_manager
execute_from_command_line(action_mapping, argv)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/django/core/management.py", line 1562, in
execute_from_command_line
action_mapping[action](int(options.verbosity), options.interactive)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/django/core/management.py", line 590, in syncdb
load_data(['initial_data'], verbosity=verbosity)
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
site-packages/django/core/management.py", line 1358, in load_data
fixture_name, format = fixture_label.rsplit('.', 1)
AttributeError: 'str' object has no attribute 'rsplit'
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/3625>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---