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

remove Python2 crumbs #29

Merged
merged 1 commit into from
Apr 28, 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
1 change: 0 additions & 1 deletion easydev/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# Documentation: http://easydev-python.readthedocs.io
#
##############################################################################
from __future__ import absolute_import # avoids conflict with standard module

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion easydev/progressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
##############################################################################
"""A progress bar copied and adapted from pyMC code (dec 2014)"""
from __future__ import print_function

import sys
import time
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pytest-timeout = "^2.2.0"
pytest-runner = "^6.0.1"
coveralls = "^3.3.1"
flaky = "^3.7.0"
mock = "^5.1.0"


[tool.poetry.group.doc.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion test/test_appdirs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock


def test_app():
Expand Down
5 changes: 1 addition & 4 deletions test/test_browse.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from easydev import browser

try:
from unittest.mock import patch
except:
from mock import patch
from unittest.mock import patch


def test_browse(mocker):
Expand Down
2 changes: 1 addition & 1 deletion test/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os.path

# from mock import patch
# from unittest.mock import patch
import subprocess

from easydev.misc import cmd_exists, get_home, in_ipynb
Expand Down
Loading