Skip to content

Commit

Permalink
Removed leftover conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 18, 2024
1 parent 5361dbb commit e43ef99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions tests/test_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime
from threading import Event
from types import TracebackType
from unittest.mock import MagicMock, Mock, patch

import pytest
from pytz import UTC, utc
Expand All @@ -22,11 +23,6 @@
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.schedulers.tornado import TornadoScheduler

try:
from unittest.mock import MagicMock, Mock, patch
except ImportError:
from unittest.mock import MagicMock, Mock, patch


@pytest.fixture
def mock_scheduler(timezone):
Expand Down
6 changes: 1 addition & 5 deletions tests/test_triggers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pickle
import random
from datetime import date, datetime, timedelta
from unittest.mock import Mock

import pytest
import pytz
Expand All @@ -11,11 +12,6 @@
from apscheduler.triggers.date import DateTrigger
from apscheduler.triggers.interval import IntervalTrigger

try:
from unittest.mock import Mock
except ImportError:
from unittest.mock import Mock


class _DummyTriggerWithJitter(BaseTrigger):
def __init__(self, dt, jitter):
Expand Down

0 comments on commit e43ef99

Please sign in to comment.