not proceed any further on runtests.py

22 views
Skip to first unread message

Eric Ahn

unread,
Feb 4, 2021, 9:14:35 AM2/4/21
to Django users
Hello, 

$ cd django/tests
$ ./runtests.py

...
...

File "./runtests.py", line 325 in django_tests
  File "./runtests.py", line 593 in <module>
....................................................sss.s..................................sssssssssssss..................................................ssssss..................................................................................................................................................................................................................................................................................................................................................................................s.............sss..s.ss.....s..ss.sss.s......ss.s.........s......................s.....................s...s....................s............s......s.s...s...

Why not proceed any further?
Thanks

Eric Ahn

unread,
Feb 6, 2021, 3:27:29 AM2/6/21
to Django users
Shoud I set up on runtests.py or add configuration to django? 


I add more details : 

and 
$ cd django/tests
$ ./runtests.py 

Testing against Django installed in '/django/django' with up to 8 processes
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Creating test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
System check identified no issues (14 silenced).

File "/django/test/runner.py", line 668 in run_suite File "/django/test/runner.py", line 727 in run_tests File "./runtests.py", line 325 in django_tests File "./runtests.py", line 593 in <module> .....................................................sssss..................... .............ssssssssssss...........................................ssssss..... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ........................................................s.............sss..s.ss .....s..ss.sss.s......ss.s.........s......................s.................... .s...s....................s............s......s.s...s... 

^C   <======  I do break

======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.CustomStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
    self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 322176) != datetime.datetime(2021, 2, 6, 2, 10, 35, 323020)

======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.DiscardingFalseContentStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
    self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 326147) != datetime.datetime(2021, 2, 6, 2, 10, 35, 326878)

======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.FileStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
    self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 507195) != datetime.datetime(2021, 2, 6, 2, 10, 35, 507936)

======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.OverwritingStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
    testMethod()
  File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
    self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 698865) != datetime.datetime(2021, 2, 6, 2, 10, 35, 699950)

----------------------------------------------------------------------
Ran 14440 tests in 406.552s

FAILED (failures=4, skipped=1157, expected failures=4)
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...


2021년 2월 4일 목요일 오후 11시 14분 35초 UTC+9에 Eric Ahn님이 작성:
Reply all
Reply to author
Forward
0 new messages