Update conftest.py (#24473)

This commit is contained in:
Peter Scheibel 2021-06-22 12:57:35 -07:00 committed by GitHub
parent 323b47a94e
commit 477c8ce820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,10 +16,10 @@
import tempfile
import xml.etree.ElementTree
if sys.version_info >= (2, 7):
if sys.version_info >= (3,):
# CVS outputs dates in different formats on different systems. We are using
# the dateutil package to parse these dates. This package does not exist
# for Python <2.7. That means that we cannot test checkouts "by date" for
# for Python 2.x. That means that we cannot test checkouts "by date" for
# CVS respositories. (We can still use CVS repos with all features, only
# our tests break.)
from dateutil.parser import parse as parse_date