This is a pointless test anyway.

Python has its own unit test suite, we don't need to test that `open()`
can open filenames with unicode characters.
This commit is contained in:
Matt Basta 2012-11-13 14:55:48 -08:00
Родитель 8b3e08d499
Коммит 1fbfa6b916
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -2425,14 +2425,6 @@ class TestUpload(BaseUploadTest):
user = UserProfile.objects.get(email='regular@mozilla.com')
eq_(FileUpload.objects.get().user, user)
def test_fileupload_ascii_post(self):
path = 'apps/files/fixtures/files/jétpack.xpi'
data = open(os.path.join(settings.ROOT, path))
r = self.client.post(self.url, {'upload': data})
# If this is broke, we'll get a traceback.
eq_(r.status_code, 302)
@attr('validator')
def test_fileupload_validation(self):
self.post()