diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-07 10:34:17 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-07 10:34:17 -0400 |
| commit | 208af4d231da879174ba189c2f756360ae6dca0a (patch) | |
| tree | d5369f063fc971e2622dc4e4c7ecf876c2fde244 /pkg_resources | |
| parent | c3bf0dd4521637a1301187af0aa8732613674561 (diff) | |
| download | python-setuptools-git-208af4d231da879174ba189c2f756360ae6dca0a.tar.gz | |
Add test capturing possible violation in expectation due to new Python 2.7.10 release. Ref #380.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/tests/test_markers.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg_resources/tests/test_markers.py b/pkg_resources/tests/test_markers.py new file mode 100644 index 00000000..d8844e74 --- /dev/null +++ b/pkg_resources/tests/test_markers.py @@ -0,0 +1,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 |
