Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix test that depended on specific response header

  • Loading branch information...
commit b87ed7c9703529b9c4f2f7945ac04ea66701b9c4 1 parent 246e3b6
@jamesturk jamesturk authored
Showing with 2 additions and 3 deletions.
  1. +2 −2 scrapelib/tests/test_scraper.py
  2. +0 −1  setup.py
View
4 scrapelib/tests/test_scraper.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
1  setup.py
@@ -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"),
Please sign in to comment.
Something went wrong with that request. Please try again.