#2725 closed defect (fixed)

failure in test_web.Web.test_welcome on Windows

Reported by: daira Owned by: warner
Priority: normal Milestone: 1.11.0
Component: code-frontend-web Version: 1.10.2
Keywords: tests blocks-release windows unicode time review-needed Cc:
Launchpad Bug:

Description

[FAIL]
Traceback (most recent call last):
  File "c:\users\buildslave\tahoe\daira_win7-64_py2_7\build\src\allmydata\test\test_web.py", line 637, in _check
    self.failUnless(re.search(u'<div class="status-indicator"><img (src="img/connected-yes.png" |alt="Connected" ){2}/></div>\n                <a( class="timestamp"| title="1970-01-01 13:00:10"){2}>1d\u00A00h\u00A00m\u00A050s</a>', res_u), res_u)
  File "C:\Python27\lib\site-packages\twisted\trial\_synctest.py", line 400, in assertTrue
    super(_Assertions, self).assertTrue(condition, msg)
  File "C:\Python27\lib\unittest\case.py", line 422, in assertTrue
    raise self.failureException(msg)
twisted.trial.unittest.FailTest: <FailTest instance at 0x5ef5240 with str error:
 Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted\python\reflect.py", line 443, in safe_str
    return str(o)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u263a' in position 1004: ordinal not in range(128)
>

allmydata.test.test_web.Web.test_welcome

Change History (7)

comment:1 Changed at 2016-02-02T19:24:29Z by daira

  • Keywords unicode added
  • Owner set to daira
  • Status changed from new to assigned

This may be related to the recent fix for #2663.

comment:2 Changed at 2016-02-02T19:36:28Z by Daira Hopwood <daira@…>

In e1285d2/trunk:

Fix an error-reporting problem in test_welcome (this does not fix the underlying failure). refs ticket:2725

Signed-off-by: Daira Hopwood <daira@…>

comment:3 Changed at 2016-02-02T19:43:39Z by daira

The current failure is at https://tahoe-lafs.org/buildbot-tahoe-lafs/builders/Daira%20Win7-64%20py2.7/builds/71/steps/test/logs/stdio (it is not necessarily Unicode-related, that was just a problem when trying to print res_u after the actual test condition had failed).

comment:4 Changed at 2016-02-05T19:12:45Z by daira

  • Keywords time added
  • Summary changed from Unicode-related failure in test_web.Web.test_welcome on Windows to failure in test_web.Web.test_welcome on Windows

The underlying problem was that allmydata.test.common_util.TimezoneMixin.setTimezone doesn't work on Windows due to lack of time.tzset.

comment:5 Changed at 2016-02-08T15:20:07Z by daira

  • Keywords review-needed added
  • Owner changed from daira to warner
  • Status changed from assigned to new

comment:6 Changed at 2016-02-08T22:57:38Z by Daira Hopwood <daira@…>

  • Resolution set to fixed
  • Status changed from new to closed

In c6449b6/trunk:

Fix tests on platforms without time.tzset (e.g. Windows). fixes ticket:2725

Signed-off-by: Daira Hopwood <daira@…>

comment:7 Changed at 2016-03-22T05:03:36Z by warner

  • Milestone changed from 1.10.3 to 1.11.0

Milestone renamed

Note: See TracTickets for help on using tickets.