Skip to content

Commit

Permalink
Drop python2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Sep 25, 2024
1 parent c2389ce commit 381107a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,9 @@
import sys
import unittest
# Assuming you are using the mock library to ... mock things
try:
from unittest.mock import call, patch, MagicMock, DEFAULT # In Python 3, mock is built-in
from io import StringIO
except ImportError:
from mock import call, patch, MagicMock, DEFAULT # Python 2
from StringIO import StringIO
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from unittest.mock import call, patch, MagicMock, DEFAULT # In Python 3, mock is built-in
from io import StringIO
from collections import OrderedDict

from alibuild_helpers.utilities import parseRecipe, resolve_tag
from alibuild_helpers.build import doBuild, storeHashes, generate_initdotsh
Expand Down

0 comments on commit 381107a

Please sign in to comment.