• Mario Corchero's avatar
    Don't report deleted attributes in __dir__ (GH#10148) · 0df635c7
    Mario Corchero yazdı
    When an attribute is deleted from a Mock, a sentinel is added rather
    than just deleting the attribute. This commit checks for such sentinels
    when returning the child mocks in the __dir__ method as users won't
    expect deleted attributes to appear when performing dir(mock).
    0df635c7
Adı
Son kayıt (commit)
Son güncelleme
..
testmock Loading commit data...
__init__.py Loading commit data...
__main__.py Loading commit data...
_test_warnings.py Loading commit data...
dummy.py Loading commit data...
support.py Loading commit data...
test_assertions.py Loading commit data...
test_break.py Loading commit data...
test_case.py Loading commit data...
test_discovery.py Loading commit data...
test_functiontestcase.py Loading commit data...
test_loader.py Loading commit data...
test_program.py Loading commit data...
test_result.py Loading commit data...
test_runner.py Loading commit data...
test_setups.py Loading commit data...
test_skipping.py Loading commit data...
test_suite.py Loading commit data...