aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/tests/test_markers.py
blob: 2f4b52c5f449b6836091e9676decc260545972ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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_ordering():
	assert evaluate_marker("python_full_version > '2.7.3'") is True