old_contents: # Copyright (c) 2008-2009 gocept gmbh & co. kg
  # See also LICENSE.txt
  
  import __future__
  
  import unittest
  import doctest
  import ftputil
  
  from zope.testing import doctest
  
  def setUp(test):
      # ftputil.FTPHost defines a __del__ that stops the
      # garbage collector from working, and this shows up in an
      # annoying way during the tests
      try:
          del ftputil.FTPHost.__del__
      except AttributeError:
          pass
      
  def test_suite():
      suite = unittest.TestSuite()
      suite.addTest(doctest.DocFileSuite(
          'export.txt', 'import.txt',
          setUp=setUp,
          globs={'with_statement': __future__.with_statement},
          optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE))
      return suite
  
new_contents: # Copyright (c) 2008-2009 gocept gmbh & co. kg
  # See also LICENSE.txt
  
  import __future__
  import doctest
  import doctest
  import ftputil
  import unittest
  
  
  def setUp(test):
      # ftputil.FTPHost defines a __del__ that stops the
      # garbage collector from working, and this shows up in an
      # annoying way during the tests
      try:
          del ftputil.FTPHost.__del__
      except AttributeError:
          pass
  
  
  def test_suite():
      suite = unittest.TestSuite()
      suite.addTest(doctest.DocFileSuite(
          'export.txt', 'import.txt',
          setUp=setUp,
          globs={'with_statement': __future__.with_statement},
          optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE))
      return suite
  
subject: Use stdlib doctest instead of zope.testing