Skip to content

Commit

Permalink
chore(deps): Remove try/except for mock import
Browse files Browse the repository at this point in the history
  • Loading branch information
holtskinner committed Mar 11, 2024
1 parent 71191ab commit 57d8979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions tests/unit/test_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
import os
import shutil

# try/except added for compatibility with python < 3.8
try:
from unittest import mock
except ImportError: # pragma: NO COVER
import mock
from unittest import mock

import glob

Expand Down
6 changes: 1 addition & 5 deletions tests/unit/test_gcs_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
from google.cloud import storage
from google.cloud.documentai_toolbox import gcs_utilities

# try/except added for compatibility with python < 3.8
try:
from unittest import mock
except ImportError: # pragma: NO COVER
import mock
from unittest import mock


test_bucket = "test-directory"
Expand Down

0 comments on commit 57d8979

Please sign in to comment.