summaryrefslogtreecommitdiff
path: root/pkg_resources/api_tests.txt
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources/api_tests.txt')
-rw-r--r--pkg_resources/api_tests.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkg_resources/api_tests.txt b/pkg_resources/api_tests.txt
index 50e04b87..d28db0f5 100644
--- a/pkg_resources/api_tests.txt
+++ b/pkg_resources/api_tests.txt
@@ -210,8 +210,7 @@ working set triggers a ``pkg_resources.VersionConflict`` error:
>>> try:
... ws.find(Requirement.parse("Bar==1.0"))
- ... except pkg_resources.VersionConflict:
- ... exc = sys.exc_info()[1]
+ ... except pkg_resources.VersionConflict as exc:
... print(str(exc))
... else:
... raise AssertionError("VersionConflict was not raised")
@@ -365,9 +364,6 @@ Environment Markers
>>> print(im("'x'=='x' or os.open('foo')=='y'")) # no short-circuit!
Language feature not supported in environment markers
- >>> print(im("'x' < 'y'"))
- '<' operator not allowed in environment markers
-
>>> print(im("'x' < 'y' < 'z'"))
Chained comparison not allowed in environment markers
@@ -418,3 +414,12 @@ Environment Markers
>>> em("'yx' in 'x'")
False
+
+ >>> em("python_version >= '2.6'")
+ True
+
+ >>> em("python_version > '2.5'")
+ True
+
+ >>> im("platform_python_implementation=='CPython'")
+ False