File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ * Converted unicode tests from using u'', patch from Eren Güve.
2+
13 * Included license file (pull request by "Philippe" pombredanne).
24
35 * Doing a "set" after server goes away, raised AttributeError:
Original file line number Diff line number Diff line change @@ -1336,13 +1336,13 @@ def __eq__(self, other):
13361336
13371337 print "Testing sending a unicode-string key..." ,
13381338 try :
1339- x = mc .set (u 'keyhere' , 1 )
1339+ x = mc .set (unicode ( 'keyhere' ) , 1 )
13401340 except Client .MemcachedStringEncodingError , msg :
13411341 print "OK" ,
13421342 else :
13431343 print "FAIL" ,; failures = failures + 1
13441344 try :
1345- x = mc .set ((u 'a'* SERVER_MAX_KEY_LENGTH ).encode ('utf-8' ), 1 )
1345+ x = mc .set ((unicode ( 'a' ) * SERVER_MAX_KEY_LENGTH ).encode ('utf-8' ), 1 )
13461346 except :
13471347 print "FAIL" ,; failures = failures + 1
13481348 else :
@@ -1356,7 +1356,8 @@ def __eq__(self, other):
13561356 else :
13571357 print "FAIL" ; failures = failures + 1
13581358
1359- print "Testing using a value larger than the memcached value limit..." ,
1359+ print "Testing using a value larger than the memcached value limit..."
1360+ print 'NOTE: "MemCached: while expecting[...]" is normal...'
13601361 x = mc .set ('keyhere' , 'a' * SERVER_MAX_VALUE_LENGTH )
13611362 if mc .get ('keyhere' ) == None :
13621363 print "OK" ,
You can’t perform that action at this time.
0 commit comments