• 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
2018-10-27-11-54-12.bpo-35082.HDj1nr.rst 83 Bytes