Skip to content

Commit

Permalink
Cleanups toward Py3k.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed May 23, 2017
1 parent 22ebd64 commit 12c77c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Products/ExternalMethod/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
##############################################################################

import ExternalMethod
from Products.ExternalMethod import ExternalMethod


def initialize(context):
Expand Down
5 changes: 2 additions & 3 deletions src/Products/ExternalMethod/tests/testExternalMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import App.config

import Products.ExternalMethod.tests
from Products.ExternalMethod.ExternalMethod import ExternalMethod


Expand All @@ -38,10 +37,10 @@ def package_home(globals_dict):
class TestExternalMethod(unittest.TestCase):

def setUp(self):
test_dir, _ = os.path.split(__file__)
self._old = App.config.getConfiguration()
cfg = App.config.DefaultConfiguration()
cfg.instancehome = os.path.dirname(
Products.ExternalMethod.tests.__file__)
cfg.instancehome = test_dir
App.config.setConfiguration(cfg)

def tearDown(self):
Expand Down

0 comments on commit 12c77c5

Please sign in to comment.