Skip to content

Commit

Permalink
Move README.txt into package and enable it as a doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
philikon committed Jul 28, 2007
1 parent e7e9c46 commit 5c30f19
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def read(*rnames):
'environment for Python, e.g. for running untrusted code.',
author='Zope Corporation and Contributors',
author_email='zope3-dev@zope.org',
long_description=open('README.txt').read(),
long_description=open(
os.path.join('src', 'RestrictedPython', 'README.txt')).read(),

packages = find_packages('src'),
package_dir = {'': 'src'},
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions src/RestrictedPython/tests/testREADME.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
##############################################################################
#
# Copyright (c) 2007 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Run tests in README.txt
"""
import unittest
from zope.testing.doctestunit import DocFileSuite

__docformat__ = "reStructuredText"

def test_suite():
return unittest.TestSuite([
DocFileSuite('README.txt', package='RestrictedPython'),
])

if __name__ == '__main__':
unittest.main(defaultTest='test_suite')

0 comments on commit 5c30f19

Please sign in to comment.