Permalink
Browse files

only pip install mock for py2; use unittest.mock in py3

  • Loading branch information...
anthrotype committed Oct 6, 2017
1 parent c58188d commit 028c46b2af0892a1b043c0c9a31ae117001c5052
Showing with 8 additions and 4 deletions.
  1. +7 −3 test/test_arguments.py
  2. +1 −1 test_requirements.txt
@@ -14,9 +14,13 @@
import os
import unittest
# unittest.mock is only available for python 3+
from mock import patch
import mock
try:
# unittest.mock is only available for python 3+
from unittest import mock
from unittest.mock import patch
except ImportError:
import mock
from mock import patch
from fontTools.ttLib import TTFont
from fontmake.font_project import FontProject
import fontmake.__main__ as entry
@@ -1,2 +1,2 @@
-r requirements.txt
mock==2.0.0
mock==2.0.0; python_version < "3.3"

0 comments on commit 028c46b

Please sign in to comment.