Commit b78994aa authored by Paul Ganssle's avatar Paul Ganssle

Import distribution in doctest

Fixes GH issue #1612, bug introduced in commit 0902f02d
parent 0902f02d
......@@ -202,6 +202,7 @@ class VersionlessRequirement:
name as the 'requirement' so that scripts will work across
multiple versions.
>>> from pkg_resources import Distribution
>>> dist = Distribution(project_name='foo', version='1.0')
>>> str(dist.as_requirement())
'foo==1.0'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment