The functional tests haven't been running due to an unused import
svn path=/plone.app.discussion/trunk/; revision=48835
This commit is contained in:
parent
d5a999b429
commit
d8f864596e
@ -8,14 +8,13 @@ import doctest
|
|||||||
try:
|
try:
|
||||||
import unittest2 as unittest
|
import unittest2 as unittest
|
||||||
import pprint
|
import pprint
|
||||||
import interlude
|
|
||||||
|
|
||||||
from plone.testing import layered
|
from plone.testing import layered
|
||||||
|
|
||||||
from plone.app.discussion.testing import \
|
from plone.app.discussion.testing import \
|
||||||
PLONE_APP_DISCUSSION_FUNCTIONAL_TESTING
|
PLONE_APP_DISCUSSION_FUNCTIONAL_TESTING
|
||||||
PLONE4 = True
|
PLONE4 = True
|
||||||
except:
|
except ImportError:
|
||||||
import unittest
|
import unittest
|
||||||
PLONE4 = False
|
PLONE4 = False
|
||||||
|
|
||||||
@ -32,8 +31,7 @@ if PLONE4:
|
|||||||
suite.addTests([
|
suite.addTests([
|
||||||
layered(doctest.DocFileSuite(test ,
|
layered(doctest.DocFileSuite(test ,
|
||||||
optionflags=optionflags,
|
optionflags=optionflags,
|
||||||
globs={'interact': interlude.interact,
|
globs={'pprint': pprint.pprint,
|
||||||
'pprint': pprint.pprint,
|
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
layer=PLONE_APP_DISCUSSION_FUNCTIONAL_TESTING)
|
layer=PLONE_APP_DISCUSSION_FUNCTIONAL_TESTING)
|
||||||
|
Loading…
Reference in New Issue
Block a user