Skip to content

Commit

Permalink
Fixed issue pickling data in case of CrawlSpiders
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAitken committed May 14, 2020
1 parent a99354f commit b7bd457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scrapy_testmaster/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def process_spider_output(self, response, result, spider):
k: v for k, v in spider.__dict__.items()
if k not in ('crawler', 'settings', 'start_urls')
}
temp_rules = spider_attr_out.get('_rules', [])
spider_attr_out['_rules'] = [repr(rule) for rule in temp_rules]

data = {
'spider_name': spider.name,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='scrapy-testmaster',
version='0.1.1',
version='0.1.2',
author='Thomas Aitken',
author_email='tclaitken@gmail.com',
description='Automated testing and debugging tool for Scrapy.',
Expand Down

0 comments on commit b7bd457

Please sign in to comment.