Skip to content

Commit 8ef7b71

Browse files
author
Jesse Pollak
committed
add better error message for not having mock dependency for tests
1 parent 9735d2c commit 8ef7b71

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/async_buffered_consumer_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
try:
1616
from mock import Mock, patch, DEFAULT
1717
except ImportError:
18-
print 'mixpanel-python requires the mock package to run the test suite'
19-
raise
18+
raise Exception(
19+
"""
20+
mixpanel-python-async requires the mock package to run the test suite.
21+
Please run:
22+
23+
$ pip install mock
24+
""")
2025

2126
from mixpanel_async import AsyncBufferedConsumer
2227

0 commit comments

Comments
 (0)