File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments