summaryrefslogtreecommitdiff
path: root/pkg_resources/tests/test_markers.py
blob: d8844e74e3e65ff562e49ff0b71070cbd511d270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
try:
	import unittest.mock as mock
except ImportError:
	import mock

from pkg_resources import evaluate_marker


@mock.patch.dict('pkg_resources.MarkerEvaluation.values',
	python_full_version=mock.Mock(return_value='2.7.10'))
def test_lexicographic_ordering():
	"""
	Although one might like 2.7.10 to be greater than 2.7.3,
	the marker spec only supports lexicographic ordering.
	"""
	assert evaluate_marker("python_full_version > '2.7.3'") is False