Fix #1025 - Make API IDs IRIs
[mediagoblin.git] / mediagoblin / tests / test_workbench.py
index b9e99cbef8fd25207a8e7d7c05410b157f207e4e..f3ff57ed669687f0f8d4ef179cd8bcb73da7b0c8 100644 (file)
@@ -22,9 +22,6 @@ from mediagoblin.tools import workbench
 from mediagoblin.mg_globals import setup_globals
 from mediagoblin.decorators import get_workbench
 from mediagoblin.tests.test_storage import get_tmp_filestorage, cleanup_storage
-from mediagoblin.tools.testing import _activate_testing
-
-_activate_testing()
 
 
 class TestWorkbench(object):
@@ -53,7 +50,7 @@ class TestWorkbench(object):
         # kill a workbench
         this_workbench = self.workbench_manager.create()
         tmpfile_name = this_workbench.joinpath('temp.txt')
-        tmpfile = file(tmpfile_name, 'w')
+        tmpfile = open(tmpfile_name, 'w')
         with tmpfile:
             tmpfile.write('lollerskates')