test.unit.common.test_db.TestDatabaseBroker - AssertionError: DatabaseError not raised
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
$ tox -e py310
=======
Traceback (most recent call last):
File "/root/
AssertionError: DatabaseError not raised
'DatabaseError not raised' = <unittest.
>> raise <unittest.
I saw this on Ubuntu Kinetic.
--- a/test/
+++ b/test/
@@ -842,8 +842,7 @@ class TestDatabaseBro
broker = DatabaseBroker(
- with self.assertRais
- broker.get() as conn:
+ with broker.get() as conn:
To get some more details I ran with the patch above:
=======
-------
Traceback (most recent call last): File "/root/
self.
AssertionError: "DB connection error (/tmp/tmpkbvo93
"""Fail immediately, with the given message.""" >> raise self.failureExc
It seems the db doesn't exist.
Further checks show the db does exist:
glob output for /tmp/tmphmc65kh
However, it almost seems to be attempting to access os.path.