Permalink
Browse files

Python 3.6 needs VACUUM to be outsize the transaction

  • Loading branch information...
steffann committed Jun 25, 2017
1 parent 654ae3f commit 455cf38bc321c86c7c404710266260127e6f1d7c
@@ -685,6 +685,7 @@ def create_tables(self):
db.execute("DELETE FROM clients WHERE NOT EXISTS(SELECT 1 FROM addresses WHERE client_fk=clients.id) "
"AND NOT EXISTS(SELECT 1 FROM prefixes WHERE client_fk=clients.id);")

db.execute("VACUUM")
# Vacuum outside the transaction
db.execute("VACUUM")

db.close()
@@ -288,7 +288,7 @@ def test_remember_lease_again(self):
store.remember_lease(bundle)

# Change some of the relay information and remember again
bundle.incoming_relay_messages[-1].get_option_of_type(RelayIdOption).duid=LinkLayerDUID(
bundle.incoming_relay_messages[-1].get_option_of_type(RelayIdOption).duid = LinkLayerDUID(
hardware_type=1, link_layer_address=bytes.fromhex('343434343434'))
bundle.incoming_relay_messages[0].get_option_of_type(RemoteIdOption).enterprise_number = 10
store.remember_lease(bundle)

0 comments on commit 455cf38

Please sign in to comment.