From: Torsten Werner Date: Tue, 25 Jan 2011 22:38:11 +0000 (+0100) Subject: Add workaround for SQLAlchemy 0.5. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd446acbd6d2e5f500ef73e4ffd0fb894ec74b87;p=dak Add workaround for SQLAlchemy 0.5. Signed-off-by: Torsten Werner --- diff --git a/tests/dbtest_packages.py b/tests/dbtest_packages.py index 9d4761d7..7150866b 100755 --- a/tests/dbtest_packages.py +++ b/tests/dbtest_packages.py @@ -454,6 +454,7 @@ class PackageTestCase(DBDakTestCase): upload = Upload(pkg) poolfile = add_deb_to_db(upload, 'hello_2.2-2_i386.deb', self.session) self.session.refresh(poolfile) + self.session.refresh(poolfile.binary) self.assertEqual('main/h/hello/hello_2.2-2_i386.deb', poolfile.filename) self.assertEqual('hello', poolfile.binary.package) self.assertEqual('2.2-2', poolfile.binary.version)