Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use newer unittest.mock everwhere #3529

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions gensim/corpora/sharded_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

"""

from __future__ import print_function

import logging
import os
import math
Expand Down
2 changes: 1 addition & 1 deletion gensim/test/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import logging
import unittest
from unittest import mock

import mock
import numpy as np

from gensim.parsing.preprocessing import (
Expand Down
5 changes: 1 addition & 4 deletions gensim/test/test_poincare.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
import os
import tempfile
import unittest
try:
from mock import Mock
except ImportError:
from unittest.mock import Mock
from unittest.mock import Mock

import numpy as np
try:
Expand Down
1 change: 0 additions & 1 deletion gensim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

"""Various general utility functions."""

from __future__ import with_statement
from contextlib import contextmanager
import collections.abc
import logging
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ def run(self):
core_testenv = [
'pytest',
'pytest-cov',
'mock',
'testfixtures',
]

Expand Down