-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Destroy MarkerEvaluation for being pointless, fix two silly mistakes …
…in tests and update packaging changes.
- Loading branch information
1 parent
7d63ebf
commit 3bd5118
Showing
8 changed files
with
46 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
packaging==15.3 | ||
pyparsing==2.0.6 | ||
six==1.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
try: | ||
import unittest.mock as mock | ||
import unitest.mock as mock | ||
except ImportError: | ||
import mock | ||
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 | ||
@mock.patch('platform.python_version', return_value='2.7.10') | ||
def test_ordering(python_version_mock): | ||
assert evaluate_marker("python_full_version > '2.7.3'") is True |