[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2375: make tests work under a non-ASCII path

Tahoe-LAFS trac at tahoe-lafs.org
Thu Feb 5 16:58:42 UTC 2015


#2375: make tests work under a non-ASCII path
------------------------+--------------------------------
     Reporter:  daira   |      Owner:  daira
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  undecided
    Component:  code    |    Version:  1.10.0
   Resolution:          |   Keywords:  unicode tests i18n
Launchpad Bug:          |
------------------------+--------------------------------

Comment (by daira):

 Another 6 errors in test_auth were easily fixed. That leaves:
 {{{
 [FAIL]
 Traceback (most recent call last):
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/test/test_system.py", line 1384, in _test_runner
     self.failUnlessEqual(len(descriptions), 30)
   File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line
 356, in assertEqual
     % (msg, pformat(first), pformat(second)))
 twisted.trial.unittest.FailTest: not equal:
 a = 0
 b = 30


 allmydata.test.test_system.SystemTest.test_filesystem
 ===============================================================================
 [ERROR]
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
 line 172, in _worker
     result = context.call(ctx, function, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 81, in callWithContext
     return func(*args,**kw)
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/scripts/runner.py", line 141, in runner
     rc = cli.dispatch[command](so)
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/scripts/cli.py", line 531, in get
     (options.from_file, options.to_file)
 exceptions.UnicodeEncodeError: 'ascii' codec can't encode character
 u'\u20ac' in position 74: ordinal not in range(128)

 allmydata.test.test_cli.Mv.test_mv_behavior
 ===============================================================================
 [ERROR]
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
 line 172, in _worker
     result = context.call(ctx, function, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 81, in callWithContext
     return func(*args,**kw)
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/scripts/runner.py", line 107, in runner
     config.parseOptions(argv)
   File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line
 252, in parseOptions
     self._dispatch[optMangled].dispatch(optMangled, arg)
   File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line
 56, in dispatch
     raise UsageError("Parameter type enforcement failed: %s" % (e,))
 twisted.python.usage.UsageError: Parameter type enforcement failed:
 'ascii' codec can't encode character u'\u20ac' in position 27: ordinal not
 in range(128)

 allmydata.test.test_deepcheck.DeepCheckWebGood.test_good
 ===============================================================================
 [ERROR]
 Traceback (most recent call last):
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/test/test_mutable.py", line 3150, in _debug
     oneshare = shares[0] # all shares should be MDMF
 exceptions.IndexError: list index out of range

 allmydata.test.test_mutable.Version.test_debug
 -------------------------------------------------------------------------------
 Ran 1164 tests in 288.011s

 FAILED (skips=5, expectedFailures=3, failures=2, errors=3, successes=1151)
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2375#comment:2>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list