aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/python-dateutil/py2/dateutil/test/conftest.py
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-03-18 15:57:16 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-03-18 17:36:01 +0300
commit5f76bcc9d8a7d0ff624c12731027acf9a54dd5a8 (patch)
tree15ab8c78ee8a8e4e743139621d634551298db94e /contrib/python/python-dateutil/py2/dateutil/test/conftest.py
parentebc6526bccdf9d2304b9eef3a0a9eaba8e7e38f7 (diff)
downloadydb-5f76bcc9d8a7d0ff624c12731027acf9a54dd5a8.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/python-dateutil/py2/dateutil/test/conftest.py')
-rw-r--r--contrib/python/python-dateutil/py2/dateutil/test/conftest.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/contrib/python/python-dateutil/py2/dateutil/test/conftest.py b/contrib/python/python-dateutil/py2/dateutil/test/conftest.py
deleted file mode 100644
index 78ed70acb3c..00000000000
--- a/contrib/python/python-dateutil/py2/dateutil/test/conftest.py
+++ /dev/null
@@ -1,41 +0,0 @@
-import os
-import pytest
-
-
-# Configure pytest to ignore xfailing tests
-# See: https://stackoverflow.com/a/53198349/467366
-def pytest_collection_modifyitems(items):
- for item in items:
- marker_getter = getattr(item, 'get_closest_marker', None)
-
- # Python 3.3 support
- if marker_getter is None:
- marker_getter = item.get_marker
-
- marker = marker_getter('xfail')
-
- # Need to query the args because conditional xfail tests still have
- # the xfail mark even if they are not expected to fail
- if marker and (not marker.args or marker.args[0]):
- item.add_marker(pytest.mark.no_cover)
-
-
-def set_tzpath():
- """
- Sets the TZPATH variable if it's specified in an environment variable.
- """
- tzpath = os.environ.get('DATEUTIL_TZPATH', None)
-
- if tzpath is None:
- return
-
- path_components = tzpath.split(':')
-
- print("Setting TZPATH to {}".format(path_components))
-
- from dateutil import tz
- tz.TZPATHS.clear()
- tz.TZPATHS.extend(path_components)
-
-
-set_tzpath()