unit tests sometimes fail with "Is a directory: '/tmp/.../.../policy.json'"

Bug #1790129 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/fixtures/fixture.py", line 197, in setUp
    self._setUp()
  File "watcher/tests/policy_fixture.py", line 34, in _setUp
    with open(self.policy_file_name, 'w') as policy_file:
IOError: [Errno 21] Is a directory: '/tmp/tmpnjFvzU/tmpd7sLrC/policy.json'

Full output: https://paste.ubuntu.com/p/N9wHNw5y3Q/

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.