Roundup Tracker - Issues


Author schlatterbeck
Recipients rouilj, schlatterbeck
Date 2022-11-23.17:20:46
Message-id <>
In-reply-to <>
On Wed, Nov 23, 2022 at 03:25:05PM +0000, John Rouillard wrote:
> try:
>   import mock
> except ImportError:
>   import unittest.mock as mock

OK, you know that roundup has its own mock module in
roundup/test/ Does this do the same thing?

> I have no error of that type in CI (ubuntu 3.11 and lower). What is your
> OS?

Debian, both oldstable and stable do not have a mock.
I do have unittest installed on both systems.

    from unittest import mock

work on both of them.

> My guess is mock/ was installed as a (default) package in some python
> distributions:
>   % dpkg -S /usr/lib/python3/dist-packages/mock/
>   python3-mock: /usr/lib/python3/dist-packages/mock/

Yes, seems not very portable, lets use either unittest.mock or the one
that comes with roundup.

Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:
Reichergasse 131, A-3411 Weidling       email:
Date User Action Args
2022-11-23 17:20:46schlatterbecksetrecipients: + schlatterbeck, rouilj
2022-11-23 17:20:46schlatterbecklinkissue2551242 messages
2022-11-23 17:20:46schlatterbeckcreate