[Django] #31421: running test suites hang on mac OX Catalina 10.15.2

3 views
Skip to first unread message

Django

unread,
Apr 3, 2020, 12:32:19 AM4/3/20
to django-...@googlegroups.com
#31421: running test suites hang on mac OX Catalina 10.15.2
------------------------------------------------+------------------------
Reporter: Nan Liu | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/31421>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 3, 2020, 12:34:51 AM4/3/20
to django-...@googlegroups.com
#31421: running test suites hang on mac OX Catalina 10.15.2
-------------------------------------+-------------------------------------

Reporter: Nan Liu | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Core (Other) | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Nan Liu:

Old description:

> 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.

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')
? +++++

--

--
Ticket URL: <https://code.djangoproject.com/ticket/31421#comment:1>

Django

unread,
Apr 3, 2020, 12:51:25 AM4/3/20
to django-...@googlegroups.com
#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.
>

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:

--

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>

Reply all
Reply to author
Forward
0 new messages