Skip to content

Commit

Permalink
Fix tests for engine
Browse files Browse the repository at this point in the history
  • Loading branch information
titu1994 committed Oct 12, 2018
1 parent 3d58feb commit 51e2da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/core/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

warnings.simplefilter('ignore', DeprecationWarning)

# compatible with both Python 2 and 3
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError


# wrapper function to clean up saved files and be deterministic
def optimizer_wrapper(func):
Expand Down

0 comments on commit 51e2da5

Please sign in to comment.