This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: How to handle import tripartite pacakge issue in unittest scripts for python expect mock.Mock
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, lizhu
Priority: normal Keywords:

Created on 2021-01-15 04:53 by lizhu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg385098 - (view) Author: lizhu (lizhu) Date: 2021-01-15 04:53
Hi, all
When i use unittest to test my package which import other pacakge, however other pacakge use more and more tripartite pacakges, and it has an impact on test case, example:

occur an err: moduleNotFindErro

how to fix this issue?
msg385099 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-01-15 06:52
Please try a user forum. E.g. stackoverflow.
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87098
2021-01-15 06:52:46gvanrossumsetstatus: open -> closed

nosy: + gvanrossum
messages: + msg385099

resolution: rejected
stage: resolved
2021-01-15 04:53:43lizhucreate