Skip to content

Commit

Permalink
Merge pull request #607 from etataurov/fix_tests
Browse files Browse the repository at this point in the history
Fixed miscellaneous python tests errors
  • Loading branch information
pooya committed Jan 6, 2015
2 parents 1167096 + a24aa87 commit 28582e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from chunk import LineChunker
from grep import Grep
from wordcount import WordCount
from wordcount_ddb import WordCount as WordCountDDB
from query_ddb import Query

chekhov = 'http://discoproject.org/media/text/chekhov.txt'

Expand All @@ -31,6 +29,8 @@ def test_chunk(self):

def test_discodb(self):
if self.settings['DISCO_TEST_DISCODB']:
from wordcount_ddb import WordCount as WordCountDDB
from query_ddb import Query
a, b = WordCountDDB(), Query()
b.params = 'discover'
self.job = JobChain({a: [chekhov], b: a})
Expand Down
2 changes: 1 addition & 1 deletion tests/test_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def serve(self, path):
return 'test_{0}\n'.format(path)

def setUp(self):
super(ExternalTestCase, self).setUp()
if uname()[0] == 'Darwin':
self.skipTest('Cannot build static test_external on OS X')
else:
Expand All @@ -29,6 +28,7 @@ def setUp(self):
path.join(home, 'tests', 'test_external.c'),
'-l', 'Judy'],
stderr=STDOUT)
super(ExternalTestCase, self).setUp()

def test_extmap(self):
def reduce(iter, params):
Expand Down

0 comments on commit 28582e4

Please sign in to comment.