Use reset for PHP

use proper exception param for python test
This commit is contained in:
jr conlin
2012-01-13 08:15:24 -08:00
parent 5b705db226
commit 52026ef47e
3 changed files with 14 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
TOP = $(shell pwd)
VE = virtualenv
PY = $(TOP)/bin/python
EZ = $(TOP)/bin/easy_install
.PHONY: build build-egg
build:
$(VE) --no-site-packages .
build-egg:
$(PY) setup.py bdist_egg -dist-dir dist
+1 -1
View File
@@ -43,7 +43,7 @@ class TestOAuth(unittest.TestCase):
# send the link.
try:
rsp=urllib2.urlopen(signed.get('signed_url'))
except urllib2.HTTPError as ex:
except urllib2.HTTPError, ex:
if (ex.headers.get('x-mashery-error-code') ==
'ERR_401_TIMESTAMP_IS_INVALID'):
print "Your clock is off. Check and retry."