Skip to content

Commit

Permalink
Run all tests with a pristine copy of the topic.
Browse files Browse the repository at this point in the history
This has broken 26 tests which is expected because tests were written to
make the topic a single object shared between all tests, the team has to
make a decision about which way should the tests be ran, sharing the
same topic or with a pristine topic ?

refs heynemann#18
  • Loading branch information
kalbasit committed Feb 1, 2012
1 parent 3d23d10 commit b0be6d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyvows/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from pyvows.result import VowsResult
from pyvows.async_topic import VowsAsyncTopic, VowsAsyncTopicValue

import copy


class VowsParallelRunner(object):
def __init__(self, vows, context_class, vow_successful_event, vow_error_event):
Expand Down Expand Up @@ -132,6 +134,7 @@ def run_vow(self, tests_col, topic, context_instance, member, member_name, enume
self.pool.spawn_n(self.async_run_vow, tests_col, topic, context_instance, member, member_name, enumerated)

def async_run_vow(self, tests_col, topic, context_instance, member, member_name, enumerated):
topic = copy.deepcopy(topic)
start_time = time.time()
filename, lineno = self.file_info_for(member._original)
result_obj = {
Expand Down

0 comments on commit b0be6d8

Please sign in to comment.