Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#53 closed defect (fixed)

test_pack_insufficient_perms test error

Reported by: anonymous Owned by: cmlenz
Priority: minor Milestone: 0.5
Component: General Version: 0.4
Keywords: Cc:
Operating System: BSD

Description (last modified by cmlenz)

I just checked out the svn repsoitory of bitten, and ran the tests that come with it, and I get the following error:

======================================================================
ERROR: test_pack_insufficient_perms (bitten.util.tests.archive.PackTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/darkeye/src/livesupport/trac/bitten/bitten/util/tests/archive.py", line 98, in test_pack_insufficient_perms
    self.assertRaises(archive.Error, archive.pack, self.env, repos)
  File "/usr/lib/python2.3/unittest.py", line 289, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/home/darkeye/src/livesupport/trac/bitten/bitten/util/archive.py", line 60, in pack
    prefix = root.path.replace('/', '-')
AttributeError: 'Mock' object has no attribute 'path'

----------------------------------------------------------------------
Ran 132 tests in 4.418s

FAILED (errors=1)

Attachments (0)

Change History (7)

comment:1 Changed 19 years ago by cmlenz

  • Description modified (diff)

What operating system and python version are you using?

comment:2 Changed 19 years ago by cmlenz

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

I'm not seeing this on any of the machines I'm using to build and test Bitten, so I'm not really sure how to reproduce it. Please reopen if you can provide more information.

comment:3 Changed 19 years ago by asmodai@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I am seeing this on FreeBSD 4.11 with Python 2.4.1.

Investigating, reopening by decree of cmlenz.

comment:4 Changed 19 years ago by asmodai@…

When you build and test as a normal user this test will work.

When you are root, however, you will get the traceback above.

comment:5 Changed 19 years ago by cmlenz

  • Milestone set to 0.5

So I'll just make it skip the test when run as root.

comment:6 Changed 19 years ago by cmlenz

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

Should be fixed in [278].

comment:7 Changed 19 years ago by cmlenz

  • Operating System set to BSD

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.