Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-cabal/mock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.0.2
Choose a base ref
...
head repository: testing-cabal/mock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.0.3
Choose a head ref
  • 8 commits
  • 8 files changed
  • 6 contributors

Commits on Mar 14, 2020

  1. Configuration menu
    Copy the full SHA
    27d6349 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2020

  1. Update issue templates

    cjw296 authored Jun 3, 2020
    Configuration menu
    Copy the full SHA
    a7002f3 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. bpo-40126: Fix reverting multiple patches in unittest.mock. (GH-19351)

    Patcher's __exit__() is now never called if its __enter__() is failed.
    Returning true from __exit__() silences now the exception.
    
    Backports: 4b222c9491d1700e9bdd98e6889b8d0ea1c7321e
    Signed-off-by: Chris Withers <chris@simplistix.co.uk>
    serhiy-storchaka authored and cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    902eea1 View commit details
    Browse the repository at this point in the history
  2. bpo-39966: Revert "bpo-25597: Ensure wraps' return value is used for …

    …magic methods in MagicMock" (GH-19734)
    
    * Revert "bpo-25597: Ensure wraps' return value is used for magic methods in MagicMock (#16029)"
    
    This reverts commit 72b1004657e60c900e4cd031b2635b587f4b280e.
    
    Backports: 521c8d6806adf0305c158d280ec00cca48e8ab22
    Signed-off-by: Chris Withers <chris@simplistix.co.uk>
    tirkarthi authored and cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    c627515 View commit details
    Browse the repository at this point in the history
  3. bpo-41877 Check for asert, aseert, assrt in mocks (GH-23165)

    Currently, a Mock object which is not unsafe will raise an
    AttributeError if an attribute with the prefix assert or assret is
    accessed on it. This protects against misspellings of real assert
    method calls, which lead to tests passing silently even if the tested
    code does not satisfy the intended assertion.
    
    Recently a check was done in a large code base (Google) and three
    more frequent ways of misspelling assert were found causing harm:
    asert, aseert, assrt. These are now added to the existing check.
    
    Backports: 4662fa9bfe4a849fe87bfb321d8ef0956c89a772
    Signed-off-by: Chris Withers <chris@simplistix.co.uk>
    vabr-g authored and cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    e5d7551 View commit details
    Browse the repository at this point in the history
  4. bpo-42532: Check if NonCallableMock's spec_arg is not None instead of…

    … call its __bool__ function (GH23613)
    
    Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function
    
    Backports: c598a04dd29b89ad072245ddaf738badcfb41ac7
    Signed-off-by: Chris Withers <chris@simplistix.co.uk>
    idanw206 authored and cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    f7e3ea8 View commit details
    Browse the repository at this point in the history
  5. latest sync point

    cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    841c331 View commit details
    Browse the repository at this point in the history
  6. Preparing for 4.0.3 release.

    cjw296 committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    93cf533 View commit details
    Browse the repository at this point in the history
Loading