Skip to content

Commit

Permalink
Remove Python 2 code from testMigrationTool.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees authored and thet committed Oct 13, 2020
1 parent 2259ee7 commit cba026e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Products/CMFPlone/tests/testMigrationTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@
from Products.CMFPlone.factory import _DEFAULT_PROFILE
from Products.CMFCore.utils import getToolByName

import sys


if sys.version_info.major == 2:
# Start a test upgrade at version 2.5.
# The first existing upgrade step will immediately put it at 4001.
START_PROFILE = '2.5'
else:
# Python 3 is only supported on 5.2+.
# This means you can not upgrade from 5.1 or earlier.
START_PROFILE = '5200'
# Python 3 is only supported on 5.2+.
# This means you can not upgrade from 5.1 or earlier.
START_PROFILE = '5200'


class TestMigrationTool(PloneTestCase.PloneTestCase):
Expand Down

0 comments on commit cba026e

Please sign in to comment.