Skip to content

Commit

Permalink
use newer unittest.mock everwhere
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed Apr 24, 2024
1 parent 645c2d1 commit 1074088
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
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

0 comments on commit 1074088

Please sign in to comment.