Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
Fix for the Python3 tests, restoring modules as it expects them.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed May 7, 2015
1 parent 7085c25 commit 97eb138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ htmlcov/
.tox/
.coverage
.coveragerc
build
.coverage.*
.cache
.settings
Expand Down
6 changes: 4 additions & 2 deletions sknn/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class TestBackendPseudoModule(unittest.TestCase):
def setUp(self):
if 'THEANO_FLAGS' in os.environ:
del os.environ['THEANO_FLAGS']


import theano

self.removed = {}
for name in sys.modules.keys():
for name in list(sys.modules.keys()):
if name.startswith('theano'):
self.removed[name] = sys.modules[name]
del sys.modules[name]
Expand Down

0 comments on commit 97eb138

Please sign in to comment.