Staging
v0.5.1
https://github.com/python/cpython
Revision 28be388e69c6e88d5c04abcc714db5ec526e4f5e authored by Miss Islington (bot) on 06 June 2019, 10:39:30 UTC, committed by GitHub on 06 June 2019, 10:39:30 UTC

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).
(cherry picked from commit 0df635c7f8aa69e56a092bd4f142f0f164741ab2)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
1 parent f62a372
Raw File
Tip revision: 28be388e69c6e88d5c04abcc714db5ec526e4f5e authored by Miss Islington (bot) on 06 June 2019, 10:39:30 UTC
Don't report deleted attributes in __dir__ (GHGH-10148)
Tip revision: 28be388
posix-deps-apt.sh
apt-get update

apt-get -yq install \
    build-essential \
    zlib1g-dev \
    libbz2-dev \
    liblzma-dev \
    libncurses5-dev \
    libreadline6-dev \
    libsqlite3-dev \
    libssl-dev \
    libgdbm-dev \
    tk-dev \
    lzma \
    lzma-dev \
    liblzma-dev \
    libffi-dev \
    uuid-dev \
    xvfb

if [ ! -z "$1" ]
then
  echo ##vso[task.prependpath]$PWD/multissl/openssl/$1
  echo ##vso[task.setvariable variable=OPENSSL_DIR]$PWD/multissl/openssl/$1
  python3 Tools/ssl/multissltests.py --steps=library --base-directory $PWD/multissl --openssl $1 --system Linux
fi
back to top