remove deprecated import from zope.testing
This commit is contained in:
parent
170e8f1d4e
commit
9205e8592e
3 changed files with 3 additions and 7 deletions
|
@ -84,7 +84,7 @@ A file object has additional attributes/methods.
|
||||||
>>> file.contentType
|
>>> file.contentType
|
||||||
'application/x-tar'
|
'application/x-tar'
|
||||||
>>> file.getSize()
|
>>> file.getSize()
|
||||||
432L
|
432
|
||||||
|
|
||||||
>>> logo = sub['loops_logo.png']
|
>>> logo = sub['loops_logo.png']
|
||||||
>>> logo.internalPath
|
>>> logo.internalPath
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# $Id$
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import unittest, doctest
|
import unittest, doctest
|
||||||
from zope.testing.doctestunit import DocFileSuite
|
|
||||||
from zope.interface.verify import verifyClass
|
from zope.interface.verify import verifyClass
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +11,7 @@ flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
||||||
return unittest.TestSuite((
|
return unittest.TestSuite((
|
||||||
DocFileSuite('../bscw.txt', optionflags=flags),
|
doctest.DocFileSuite('../bscw.txt', optionflags=flags),
|
||||||
))
|
))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# $Id$
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import unittest, doctest
|
import unittest, doctest
|
||||||
from zope.testing.doctestunit import DocFileSuite
|
|
||||||
from zope.interface.verify import verifyClass
|
from zope.interface.verify import verifyClass
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +20,7 @@ class Test(unittest.TestCase):
|
||||||
def test_suite():
|
def test_suite():
|
||||||
return unittest.TestSuite((
|
return unittest.TestSuite((
|
||||||
unittest.makeSuite(Test),
|
unittest.makeSuite(Test),
|
||||||
DocFileSuite('../filesystem.txt', optionflags=flags),
|
doctest.DocFileSuite('../filesystem.txt', optionflags=flags),
|
||||||
))
|
))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Reference in a new issue