#876 closed defect (fixed)

contrib/fuse/runtests.py doesn't tolerate deprecations warnings

Reported by: francois Owned by: francois
Priority: minor Milestone: 1.6.0
Component: code-frontend Version: 1.5.0
Keywords: fuse reviewed Cc: francois@…
Launchpad Bug:

Description


Attachments (2)

bug-876.dpatch (31.1 KB) - added by francois at 2009-12-30T01:11:01Z.
bug-876.2.dpatch (33.3 KB) - added by francois at 2009-12-30T13:28:22Z.

Download all attachments as: .zip

Change History (7)

Changed at 2009-12-30T01:11:01Z by francois

comment:1 Changed at 2009-12-30T01:11:26Z by francois

Depending on the versions of external libraries such as Twisted of Foolscap, the tahoe CLI can display deprecation warnings on stdout. The tests should not interpret those warnings as a failure if the node is in fact correctly started.

comment:2 Changed at 2009-12-30T01:43:29Z by davidsarah

The regexp the patch uses to skip over the warnings is ((.*\n)*)?. Besides the fact that the ? is redundant, shouldn't this only match lines that contain "DeprecationWarning"? That would be (.*DeprecationWarning.*\n)*

comment:3 Changed at 2009-12-30T13:28:08Z by francois

Yes, you're right about the ? being redundant.

However, the regex you proposed doesn't match the warnings I get here because it contains additional context lines which are not known beforehand.

/home/francois/WORK/dev/tahoe/support/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-linux-i686.egg/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/home/francois/WORK/dev/tahoe/support/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-linux-i686.egg/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/home/francois/WORK/dev/tahoe/support/lib/python2.6/site-packages/foolscap-0.4.2-py2.6.egg/foolscap/banana.py:2: DeprecationWarning: the sets module is deprecated
  import struct, sets, time
/usr/lib/python2.6/dist-packages/formless/annotate.py:730: DeprecationWarning: object.__new__() takes no parameters
  rv = cls = InterfaceClass.__new__(cls, name, bases, dct)
/usr/lib/python2.6/dist-packages/nevow/testutil.py:7: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  from popen2 import Popen3
STARTING /tmp/tahoe_fuse_test_nWBEII/introducer
introducer node probably started

I'll uploaded an updated version of the patch.

Changed at 2009-12-30T13:28:22Z by francois

comment:4 Changed at 2009-12-30T20:02:26Z by davidsarah

  • Keywords reviewed added; review-needed removed

Looks good to me.

comment:5 Changed at 2010-01-09T20:34:48Z by zooko

  • Resolution set to fixed
  • Status changed from new to closed

fixed by d0c6aa569d965b3d

Note: See TracTickets for help on using tickets.