Skip to content

Commit 9fa9807

Browse files
committed
fix tests for http class
1 parent bd5ec1b commit 9fa9807

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ebaysdk/http/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ class Connection(BaseConnection):
3030
3131
Doctests:
3232
>>> h = Connection()
33-
>>> retval = h.execute('http://shop.ebay.com/i.html?rt=nc&_nkw=mytouch+slide&_dmpt=PDA_Accessories&_rss=1')
33+
>>> retval = h.execute('http://feeds.feedburner.com/slashdot/audio?format=xml')
3434
>>> print(h.response.reply.rss.channel.ttl)
35-
60
35+
2
3636
>>> title = h.response.dom().xpath('//title')[0]
3737
>>> print(title.text)
38-
mytouch slide
38+
Slashdot
3939
>>> print(h.error())
4040
None
4141
>>> h = Connection(method='POST', debug=False)

tests/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def getTestSuite():
3939
suite.addTest(doctest.DocTestSuite(ebaysdk.merchandising))
4040
suite.addTest(doctest.DocTestSuite(ebaysdk.finding))
4141

42-
if not sys.version_info[0] >= 3:
42+
if not sys.version_info[0] >= 3 \
43+
and sys.modules.has_key('grequests') is True:
44+
4345
suite.addTest(doctest.DocTestSuite(ebaysdk.parallel))
4446

4547

0 commit comments

Comments
 (0)