Commit 9292c294 authored by Vincent Pelletier's avatar Vincent Pelletier

CMFActivity.tests: Duplicate & unused imports cleanup.

parent 5dfae179
...@@ -49,14 +49,12 @@ from Products.CMFActivity.ActivityTool import ( ...@@ -49,14 +49,12 @@ from Products.CMFActivity.ActivityTool import (
cancelProcessShutdown, Message, getCurrentNode, getServerAddress) cancelProcessShutdown, Message, getCurrentNode, getServerAddress)
from _mysql_exceptions import OperationalError from _mysql_exceptions import OperationalError
from Products.ZMySQLDA.db import DB from Products.ZMySQLDA.db import DB
from sklearn.externals.joblib.hashing import hash as joblib_hash
import gc import gc
import random import random
import threading import threading
import weakref import weakref
import transaction import transaction
from App.config import getConfiguration from App.config import getConfiguration
from asyncore import socket_map
import socket import socket
class CommitFailed(Exception): class CommitFailed(Exception):
...@@ -1552,7 +1550,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor): ...@@ -1552,7 +1550,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
organisation.activate(tag='foo', activity='SQLQueue').firstTest() organisation.activate(tag='foo', activity='SQLQueue').firstTest()
organisation.activate(after_tag='foo', activity='SQLQueue').secondTest() organisation.activate(after_tag='foo', activity='SQLQueue').secondTest()
self.commit() self.commit()
import gc
gc.disable() gc.disable()
self.tic() self.tic()
gc.enable() gc.enable()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment