Permalink
Browse files

fix test that depended on specific response header

  • Loading branch information...
jamesturk committed Nov 14, 2012
1 parent 246e3b6 commit b87ed7c9703529b9c4f2f7945ac04ea66701b9c4
Showing with 2 additions and 3 deletions.
  1. +2 −2 scrapelib/tests/test_scraper.py
  2. +0 −1 setup.py
@@ -329,8 +329,8 @@ def test_disable_compression():
# default is restored
s.disable_compression = False
data = s.urlopen(HTTPBIN + 'headers')
- assert_equal(json.loads(data)['headers']['Accept-Encoding'],
- 'identity, deflate, compress, gzip')
+ assert 'compress' in json.loads(data)['headers']['Accept-Encoding']
+ assert 'gzip' in json.loads(data)['headers']['Accept-Encoding']
# A supplied Accept-Encoding headers overrides the
# disable_compression option
View
@@ -22,7 +22,6 @@
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
("Topic :: Software Development :: Libraries :: "
"Python Modules"),

0 comments on commit b87ed7c

Please sign in to comment.