GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — use unittest.mock instead of mock · Issue #377 · googleapis/python-api-core

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

use unittest.mock instead of mock #377

Copy link
Copy link
Closed
#713
Closed
use unittest.mock instead of mock#377
#713
Copy link
Labels
type: cleanupAn internal cleanup or hygiene concern.

Description

@pgajdos
pgajdos
opened on May 12, 2022
Issue body actions

Rather a question, do you plan to migrate mock usage in tests to built-in unittest.mock instead?

Activity

  1. pgajdos commented on May 12, 2022

    @pgajdos
    pgajdos
    on May 12, 2022
    Author
    More actions

    The testsuite runs fine for me with Python 3.8, 3.9 and 3.10 with unittest.mock:
    https://build.opensuse.org/package/show/home:pgajdos:python/python-google-api-core/
    https://build.opensuse.org/package/live_build_log/home:pgajdos:python/python-google-api-core:test/openSUSE_Tumbleweed/x86_64

    It seems to be just s/import mock/from unittest import mock/

    Backtround:
    https://trello.com/c/S6eADbii/64-remove-python-mock
    https://fedoraproject.org/wiki/Changes/DeprecatePythonMock

  2. parthea commented on May 12, 2022

    @parthea
    parthea
    on May 12, 2022
    Contributor
    More actions

    Hi @pgajdos,
    Thanks for reporting this issue. PRs are welcome!

  3. parthea
    added
    type: cleanupAn internal cleanup or hygiene concern.
    on May 12, 2022
  4. s-t-e-v-e-n-k
    added 2 commits that reference this issue on Oct 2, 2024

    Switch to unittest.mock from mock

    This issue will close once commit 4db4bbf is merged into the 'main' branch.
    4db4bbf

    test: Switch to unittest.mock from mock

    This issue will close once commit 5f28e21 is merged into the 'main' branch.
    5f28e21
  5. parthea
    closed this as completedin #713on Oct 9, 2024
  6. parthea
    closed this as completedin 8c53381on Oct 9, 2024
  7. renovate-bot
    added a commit that references this issue on Oct 9, 2024

    fix: Switch to unittest.mock from mock (googleapis#713)

    This issue will close once commit 8c53381 is merged into the 'main' branch.
    8c53381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.