Skip to content

Commit

Permalink
udacity#7 Python 3.* should use 'from unittest import mock
Browse files Browse the repository at this point in the history
', Python 2.* use:
'from mock import mock

'
  • Loading branch information
ablecao committed Jan 19, 2018
1 parent 0591ddd commit bf5d16f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion face-generation/problem_unittests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from copy import deepcopy
from unittest import mock
try:
from unittest import mock
except ImportError:
from mock import mock
import tensorflow as tf


Expand Down

0 comments on commit bf5d16f

Please sign in to comment.