Eli Schwartz
unread,Dec 3, 2023, 7:13:41 PM12/3/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to thg...@googlegroups.com
It was moved to the stdlib in python 3.3, and the PyPI version is a
backport for python versions less than 3.3.
---
.gitlab-ci.yml | 20 ++++++++++----------
contrib/docker/rhel7 | 2 +-
contrib/docker/rhel8 | 2 +-
contrib/docker/rhel9 | 2 +-
contrib/generate_gitlab_ci_yml.py | 2 +-
tests/qt_cmdagent_test.py | 2 +-
tests/qt_manifestmodel_test.py | 2 +-
tests/qt_repoagent_test.py | 2 +-
tests/qt_repomanager_test.py | 2 +-
tests/widget/repofilterbar_branch_test.py | 2 +-
tests/widget/sync_save_dialog_test.py | 2 +-
11 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b9c4e6a..2edb41c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ tests-hg-5.9:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A5\.9")'
- hg -R /ci/repos/mercurial summary
@@ -19,7 +19,7 @@ tests-hg-6.0:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.0")'
- hg -R /ci/repos/mercurial summary
@@ -33,7 +33,7 @@ tests-hg-6.1:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.1")'
- hg -R /ci/repos/mercurial summary
@@ -47,7 +47,7 @@ tests-hg-6.2:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.2")'
- hg -R /ci/repos/mercurial summary
@@ -61,7 +61,7 @@ tests-hg-6.3:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.3")'
- hg -R /ci/repos/mercurial summary
@@ -75,7 +75,7 @@ tests-hg-6.4:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.4")'
- hg -R /ci/repos/mercurial summary
@@ -89,7 +89,7 @@ tests-hg-6.5:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.5")'
- hg -R /ci/repos/mercurial summary
@@ -103,7 +103,7 @@ tests-hg-6.6:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update 'tag("re:\A6\.6")'
- hg -R /ci/repos/mercurial summary
@@ -117,7 +117,7 @@ tests-hg-stable:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update stable
- hg -R /ci/repos/mercurial summary
@@ -131,7 +131,7 @@ tests-hg-default:
script:
- apt-get update
- apt-get -y install python3-pyqt5 python3-pyqt5.qsci xvfb
- - pip3 install --user nose mock
+ - pip3 install --user nose
- hg -R /ci/repos/mercurial pull
- hg -R /ci/repos/mercurial update default
- hg -R /ci/repos/mercurial summary
diff --git a/contrib/docker/rhel7 b/contrib/docker/rhel7
index 38b9591..e11eb40 100644
--- a/contrib/docker/rhel7
+++ b/contrib/docker/rhel7
@@ -21,7 +21,7 @@ RUN yum install -y \
# THg tests dependencies
RUN yum install -y python-pip && \
- pip install mock nose
+ pip install nose
# RPM build dependencies
RUN yum install -y \
diff --git a/contrib/docker/rhel8 b/contrib/docker/rhel8
index b615616..d6ee961 100644
--- a/contrib/docker/rhel8
+++ b/contrib/docker/rhel8
@@ -28,7 +28,7 @@ RUN yum install -y \
# THg tests dependencies
RUN yum install -y python3-pip && \
- pip3 install mock nose
+ pip3 install nose
# RPM build dependencies
RUN yum install -y \
diff --git a/contrib/docker/rhel9 b/contrib/docker/rhel9
index d65a214..7c745ef 100644
--- a/contrib/docker/rhel9
+++ b/contrib/docker/rhel9
@@ -23,7 +23,7 @@ RUN yum install -y \
# THg tests dependencies
RUN yum install -y python3-pip && \
- pip3 install mock nose
+ pip3 install nose
# Qscintilla
RUN pip3 install QScintilla
diff --git a/contrib/generate_gitlab_ci_yml.py b/contrib/generate_gitlab_ci_yml.py
index 6d2c60b..5efef52 100755
--- a/contrib/generate_gitlab_ci_yml.py
+++ b/contrib/generate_gitlab_ci_yml.py
@@ -81,7 +81,7 @@ def gen_gitlab_ci_yml():
'image': docker_image_name(hgver, prebuilt_images),
'script': [
*gen_install_apt_dependencies(extra=['xvfb']),
- f'pip3 install --user nose mock',
+ f'pip3 install --user nose',
*gen_ensure_mercurial_build(hgver, prebuilt_images),
thg_make_command('local'),
'xvfb-run ' + thg_make_command('tests'),
diff --git a/tests/qt_cmdagent_test.py b/tests/qt_cmdagent_test.py
index b828b1b..54a9bc7 100644
--- a/tests/qt_cmdagent_test.py
+++ b/tests/qt_cmdagent_test.py
@@ -1,7 +1,7 @@
import binascii
-import mock
+from unittest import mock
import unittest
from mercurial import (
diff --git a/tests/qt_manifestmodel_test.py b/tests/qt_manifestmodel_test.py
index e8b5a86..de1844a 100644
--- a/tests/qt_manifestmodel_test.py
+++ b/tests/qt_manifestmodel_test.py
@@ -1,6 +1,6 @@
-import mock
+from unittest import mock
import os
import sys
import unittest
diff --git a/tests/qt_repoagent_test.py b/tests/qt_repoagent_test.py
index 4176c35..3dbd009 100644
--- a/tests/qt_repoagent_test.py
+++ b/tests/qt_repoagent_test.py
@@ -1,6 +1,6 @@
-import mock
+from unittest import mock
import os
import unittest
diff --git a/tests/qt_repomanager_test.py b/tests/qt_repomanager_test.py
index 51fb2cb..07ea6b7 100644
--- a/tests/qt_repomanager_test.py
+++ b/tests/qt_repomanager_test.py
@@ -1,6 +1,6 @@
-import mock
+from unittest import mock
import os
import unittest
diff --git a/tests/widget/repofilterbar_branch_test.py b/tests/widget/repofilterbar_branch_test.py
index f7a0e54..4482cb6 100644
--- a/tests/widget/repofilterbar_branch_test.py
+++ b/tests/widget/repofilterbar_branch_test.py
@@ -1,6 +1,6 @@
-import mock
+from unittest import mock
import os
import unittest
diff --git a/tests/widget/sync_save_dialog_test.py b/tests/widget/sync_save_dialog_test.py
index c2a0619..7349668 100644
--- a/tests/widget/sync_save_dialog_test.py
+++ b/tests/widget/sync_save_dialog_test.py
@@ -1,6 +1,6 @@
-import mock
+from unittest import mock
import unittest
from tortoisehg.hgqt import (
--
2.41.0