#7745: admin_scripts tests use assertTrue, not there in Python 2.3
--------------------------------------------------------+-------------------
Reporter: Karen Tracey <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Milestone:
Component: Unit test system | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------------------------+-------------------
Comment (by Karen Tracey <[EMAIL PROTECTED]>):
I don't think it works...I still get a sorted failure (plus the new
intentional failure):
{{{
D:\u\kmt\django\trunk\tests>\bin\Python2.3.5\python.exe runtests.py
--settings=testsettings utils
======================================================================
FAIL: Doctest: regressiontests.utils.tests.__test__.datastructures
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\u\kmt\django\trunk\django\test\_doctest.py", line 2180, in
runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
regressiontests.utils.tests.__test__.datastructures
File "D:\u\kmt\django\trunk\tests\regressiontests\utils\tests.py", line
unknown line number, in datastructures
----------------------------------------------------------------------
File "D:\u\kmt\django\trunk\tests\regressiontests\utils\tests.py", line ?,
in regressiontests.utils.tests.__test__.datastructures
Failed example:
d.keys()
Expected:
[7, 1, 9xxxxxxxx]
Got:
[7, 1, 9]
----------------------------------------------------------------------
File "D:\u\kmt\django\trunk\tests\regressiontests\utils\tests.py", line ?,
in regressiontests.utils.tests.__test__.datastructures
Failed example:
sorted(real_dict.values())
Exception raised:
Traceback (most recent call last):
File "d:\u\kmt\django\trunk\django\test\_doctest.py", line 1267, in
__run
compileflags, 1) in test.globs
File "<doctest
regressiontests.utils.tests.__test__.datastructures[23]>", line 1, in ?
sorted(real_dict.values())
NameError: name 'sorted' is not defined
----------------------------------------------------------------------
Ran 11 tests in 1.662s
FAILED (failures=1)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7745#comment:6>
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
-~----------~----~----~----~------~----~------~--~---