]> err.no Git - dak/commitdiff
Add workaround for SQLAlchemy 0.5.
authorTorsten Werner <twerner@debian.org>
Tue, 25 Jan 2011 22:38:11 +0000 (23:38 +0100)
committerTorsten Werner <twerner@debian.org>
Tue, 25 Jan 2011 22:38:11 +0000 (23:38 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_packages.py

index 9d4761d794dd959d301ee99943e502561a8e048b..7150866b65f47a005ebd04dd6e278da5346242d7 100755 (executable)
@@ -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)