#31421: Running test suites hang on mac OX Catalina 10.15.2.
------------------------------+--------------------------------------
Reporter: Nan Liu | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: master
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by felixxm):
* status: new => closed
* type: Cleanup/optimization => Bug
* resolution: => duplicate
Old description:
> python version is 3.7.3.
>
> i was basically doing "contributing tutorial", and after I have done
> following:
>
> git clone --depth 1 https://github.com/YourGitHubName/django.git
> python -m pip install -e /path/to/your/local/clone/django/
> python -m pip install -r requirements/py3.txt
> ./runtests.py
>
> After I commnad+ c, it shows "Ran 13583 tests in 275.918s", which may
> indicate the position where it starts hanging.
>
> python version is 3.7.3.
>
> error message after command + c:
>
> FAIL: test_db_table (schema.tests.SchemaTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 59, in testPartExecutor
> yield
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 615, in run
> testMethod()
> File "/Users/nanliu/github/django/django/test/utils.py", line 381, in
> inner
> return func(*args, **kwargs)
> File "/Users/nanliu/github/django/tests/schema/tests.py", line 2280, in
> test_db_table
> self.assertForeignKeyExists(Book, "author_id", "schema_otherauthor")
> File "/Users/nanliu/github/django/tests/schema/tests.py", line 201, in
> assertForeignKeyExists
> self.assertEqual(constraint_fk, (expected_fk_table, field))
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 839, in assertEqual
> assertion_func(first, second, msg=msg)
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 1056, in assertTupleEqual
> self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 1027, in assertSequenceEqual
> self.fail(msg)
> File
> "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
> line 680, in fail
> raise self.failureException(msg)
> AssertionError: Tuples differ: ('schema_author', 'id') !=
> ('schema_otherauthor', 'id')
>
> First differing element 0:
> 'schema_author'
> 'schema_otherauthor'
>
> - ('schema_author', 'id')
> + ('schema_otherauthor', 'id')
> ? +++++
New description:
python version is 3.7.3.
i was basically doing "contributing tutorial", and after I have done
following:
git clone --depth 1 https://github.com/YourGitHubName/django.git
python -m pip install -e /path/to/your/local/clone/django/
python -m pip install -r requirements/py3.txt
./runtests.py
After I commnad+ c, it shows "Ran 13583 tests in 275.918s", which may
indicate the position where it starts hanging.
python version is 3.7.3.
error message after command + c:
{{{
FAIL: test_db_table (schema.tests.SchemaTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 59, in testPartExecutor
yield
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 615, in run
testMethod()
File "/Users/nanliu/github/django/django/test/utils.py", line 381, in
inner
return func(*args, **kwargs)
File "/Users/nanliu/github/django/tests/schema/tests.py", line 2280, in
test_db_table
self.assertForeignKeyExists(Book, "author_id", "schema_otherauthor")
File "/Users/nanliu/github/django/tests/schema/tests.py", line 201, in
assertForeignKeyExists
self.assertEqual(constraint_fk, (expected_fk_table, field))
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 839, in assertEqual
assertion_func(first, second, msg=msg)
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 1056, in assertTupleEqual
self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 1027, in assertSequenceEqual
self.fail(msg)
File
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py",
line 680, in fail
raise self.failureException(msg)
AssertionError: Tuples differ: ('schema_author', 'id') !=
('schema_otherauthor', 'id')
First differing element 0:
'schema_author'
'schema_otherauthor'
- ('schema_author', 'id')
+ ('schema_otherauthor', 'id')
? +++++
}}}
--
Comment:
Duplicate of #27086, see
[https://docs.djangoproject.com/en/3.0/internals/contributing/writing-code
/unit-tests/#test-suite-hangs-or-shows-failures-on-master-branch docs].
--
Ticket URL: <https://code.djangoproject.com/ticket/31421#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.c86f593c875cd6eb8da44d8c80bb9c50%40djangoproject.com.