Commit a6afef65 authored by Jeremy Hylton's avatar Jeremy Hylton

Fiddling.

Add comment explaining try/except for ImportError.
Simplify test_suite().
parent e2c13456
...@@ -13,13 +13,17 @@ ...@@ -13,13 +13,17 @@
############################################################################## ##############################################################################
"""Test ExtensionClass support in Persistence.Persistent """Test ExtensionClass support in Persistence.Persistent
$Id: test_ExtensionClass.py,v 1.4 2004/02/20 17:12:39 jeremy Exp $ $Id: test_ExtensionClass.py,v 1.5 2004/02/20 17:17:13 jeremy Exp $
""" """
from Persistence import Persistent from doctest import DocTestSuite
import pickle import pickle
from Persistence import Persistent
try: try:
# The _Persistence module is only compiled in a Zope checkout,
# where ExtensionClass is available.
import Persistent._Persistence import Persistent._Persistence
except ImportError: except ImportError:
pass pass
...@@ -499,12 +503,6 @@ def test_pickling_w_slots_w_empty_dict(): ...@@ -499,12 +503,6 @@ def test_pickling_w_slots_w_empty_dict():
""" """
from doctest import DocTestSuite
import unittest
def test_suite(): def test_suite():
return unittest.TestSuite(( return DocTestSuite()
DocTestSuite(),
))
if __name__ == '__main__': unittest.main()
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