hai shi <shihai1...@126.com> added the comment:

add a pdb point in L11 of test_datetime.py

  8     try:
  9         pure_tests = import_fresh_module(TESTS, fresh=['datetime', 
'_strptime'],
 10                                          blocked=['_datetime'])
 11         import pdb;pdb.set_trace()
 12  ->     fast_tests = import_fresh_module(TESTS, fresh=['datetime',
 13                                                        '_datetime', 
'_strptime'])

and run `./python -m test test_datetime test_datetime`:
the first iteration:
(Pdb) pure_tests.datetime_module._divide_and_round
<function _divide_and_round at 0x7f694df8e7e0>
the second iteration(`_datetime` not blocked?):
(Pdb) pure_tests.datetime_module._divide_and_round
*** AttributeError: module 'datetime' has no attribute '_divide_and_round'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40058>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to