mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Add a missing check before deleting a package's __loader__.
This commit is contained in:
parent
43e53f85b6
commit
9db1d5a379
1 changed files with 2 additions and 1 deletions
|
|
@ -1922,7 +1922,8 @@ def test_DocFileSuite():
|
|||
... package='test')
|
||||
... suite.run(unittest.TestResult())
|
||||
... finally:
|
||||
... del test.__loader__
|
||||
... if added_loader:
|
||||
... del test.__loader__
|
||||
<unittest.TestResult run=3 errors=0 failures=3>
|
||||
|
||||
'/' should be used as a path separator. It will be converted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue