From a28b75b0ba9650ae3bd46e38d12d95d48f5c5664 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 7 Jul 2008 23:16:00 +0000 Subject: Fixed #7614: the quickening has come, and there now is only one UploadedFile. On top of that, UploadedFile's interface has been improved: * The API now more closely matches a proper file API. This unfortunately means a few backwards-incompatible renamings; see BackwardsIncompatibleChanges. This refs #7593. * While we were at it, renamed chunk() to chunks() to clarify that it's an iterator. * Temporary uploaded files now property use the tempfile library behind the scenes which should ensure better cleanup of tempfiles (refs #7593 again). Thanks to Mike Axiak for the bulk of this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7859 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/regressiontests/forms/fields.py') diff --git a/tests/regressiontests/forms/fields.py b/tests/regressiontests/forms/fields.py index 4725c3ecf3..f266e7bc50 100644 --- a/tests/regressiontests/forms/fields.py +++ b/tests/regressiontests/forms/fields.py @@ -800,10 +800,10 @@ Traceback (most recent call last): ValidationError: [u'The submitted file is empty.'] >>> type(f.clean(SimpleUploadedFile('name', 'Some File Content'))) - + >>> type(f.clean(SimpleUploadedFile('name', 'Some File Content'), 'files/test4.pdf')) - + # URLField ################################################################## -- cgit v1.3