Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21789 closed Bug (needsinfo)

test failues, django-1.6.1 py3.3

Reported by: idella4 Owned by: nobody
Component: Python 3 Version: 1.5
Severity: Normal Keywords: tests
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

  • python3_3: python_test;

suffice to say a

....F...

occurs

======================================================================
ERROR: test_dotted_test_class_vanilla_unittest (test_runner.test_discover_runner.DiscoverRunnerTest)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/test_runner/test_discover_runner.py", line 33, in test_dotted_test_class_vanilla_unittest

test_discovery_sample.tests_sample.TestVanillaUnittest,

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/django/test/runner.py", line 63, in build_suite

tests = self.test_loader.loadTestsFromName(label)

File "/usr/lib64/python3.3/site-packages/unittest2/loader.py", line 125, in loadTestsFromName

(obj, test))

TypeError: calling <class 'test_discovery_sample.tests_sample.TestVanillaUnittest'> returned runTest (test_discovery_sample.tests_sample.TestVanillaUnittest), not a test

======================================================================
ERROR: test_dotted_test_method_vanilla_unittest (test_runner.test_discover_runner.DiscoverRunnerTest)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/test_runner/test_discover_runner.py", line 57, in test_dotted_test_method_vanilla_unittest

test_discovery_sample.tests_sample.TestVanillaUnittest.test_sample,

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/django/test/runner.py", line 63, in build_suite

tests = self.test_loader.loadTestsFromName(label)

File "/usr/lib64/python3.3/site-packages/unittest2/loader.py", line 118, in loadTestsFromName

test = obj()

TypeError: test_sample() missing 1 required positional argument: 'self'

======================================================================
FAIL: test_dont_base64_encode (mail.tests.MailTests)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/mail/tests.py", line 330, in test_dont_base64_encode

self.assertTrue(str('Content-Transfer-Encoding: 8bit') in s)

AssertionError: False is not True

======================================================================
FAIL: test_dotted_test_module (test_runner.test_discover_runner.DiscoverRunnerTest)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/test_runner/test_discover_runner.py", line 29, in test_dotted_test_module

self.assertEqual(count, 3)

AssertionError: 2 != 3

======================================================================
FAIL: test_file_path (test_runner.test_discover_runner.DiscoverRunnerTest)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/test_runner/test_discover_runner.py", line 99, in test_file_path

self.assertEqual(count, 4)

AssertionError: 2 != 4

======================================================================
FAIL: test_pattern (test_runner.test_discover_runner.DiscoverRunnerTest)


Traceback (most recent call last):

File "/mnt/gen2/TmpDir/portage/dev-python/django-1.6.1/work/Django-1.6.1/tests/test_runner/test_discover_runner.py", line 81, in test_pattern

self.assertEqual(count, 1)

AssertionError: 0 != 1


Ran 5891 tests in 294.918s

FAILED (failures=4, errors=2, skipped=455, expected failures=10)

see also https://bugs.gentoo.org/show_bug.cgi?id=491318

Change History (3)

comment:1 by Marc Tamlyn, 11 years ago

I get a completely clean test run on the Django 1.6.1 with Python 3.3.2 and OSX. Can you provide more reproduction steps?

comment:2 by Aymeric Augustin, 11 years ago

Resolution: needsinfo
Status: newclosed

The tests definitely pass on the CI server on Ubuntu: http://ci.djangoproject.com/job/Django%201.6/database=sqlite3,python=python3.3/

This looks Gentoo-specific. Maybe something weird they're doing with Python.

Indeed we need more specific reproduction instructions (or a patch).

Last edited 11 years ago by Aymeric Augustin (previous) (diff)

comment:3 by Shai Berger, 11 years ago

In particular, I'm guessing this is on SQLite by the test timing -- if the settings is not the test_sqlite.py from the Django tests code, please provide it.

Note: See TracTickets for help on using tickets.
Back to Top