lp.poppy.tests.test_twistedsftp.TestSFTPServer.test_file_creation fails on oneiric

Bug #892955 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Gavin Panella

Bug Description

mbp@joy% ./bin/test -cvvm poppy -t file_creation
Running tests at level 1
Running zope.testing.testrunner.layer.UnitTests tests:
  Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
 lp.poppy.tests.test_twistedsftp.TestSFTPServer.test_file_creation

Failure in test lp.poppy.tests.test_twistedsftp.TestSFTPServer.test_file_creation
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/home/mbp/launchpad/lp-branches/work/lib/lp/poppy/tests/test_twistedsftp.py", line 53, in test_file_creation
    self.assertEqual(os.stat(file_name).st_mode, 0100644)
AssertionError: 33204 != 33188

  Ran 1 tests with 1 failures and 0 errors in 0.003 seconds.
Tearing down left over layers:
  Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.

Tests with failures:
   lp.poppy.tests.test_twistedsftp.TestSFTPServer.test_file_creation
./bin/test -cvvm poppy -t file_creation 2.82s user 0.58s system 98% cpu 3.443 total

Perhaps the default umask or something similar has changed inside twisted.

Related branches

Revision history for this message
William Grant (wgrant) wrote :

Not Twisted, but Ubuntu. The default umask is now 0002.

Gavin Panella (allenap)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 892955] Re: lp.poppy.tests.test_twistedsftp.TestSFTPServer.test_file_creation fails on oneiric

This just bit me again, thanks so much for fixing it.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Gavin Panella (allenap) wrote :

Cheers Martin. I fixed it by accident while getting baffled by failures in an unrelated branch; bigjools pointed out that I was actually seeing this :)

Gavin Panella (allenap)
tags: added: qa-ok
removed: qa-needstesting
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.