Skip to content

Commit d9cc36f

Browse files
author
Jürgen Hermann
committed
Proper fix for failing test
1 parent 3333c0f commit d9cc36f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

run_tests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
#
12-
# $Id: run_tests,v 1.2 2002-01-23 11:08:52 grubert Exp $
13-
14-
import os
15-
os.environ['LANG'] = 'us'
12+
# $Id: run_tests,v 1.3 2002-01-23 20:09:41 jhermann Exp $
1613

1714
import test
1815
test.go()
1916

2017
#
2118
# $Log: not supported by cvs2svn $
19+
# Revision 1.2 2002/01/23 11:08:52 grubert
20+
# . run_tests testReldate_date failed if LANG is 'german'
21+
#
2222
# Revision 1.1 2002/01/23 05:53:46 richard
2323
# convenience script for running the unit tests...
2424
# ... they are no longer run in the setup, since they take too long

test/test_htmltemplate.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_htmltemplate.py,v 1.6 2002-01-23 05:47:57 richard Exp $
11+
# $Id: test_htmltemplate.py,v 1.7 2002-01-23 20:09:41 jhermann Exp $
1212

13-
import unittest, cgi
13+
import unittest, cgi, time
1414

1515
from roundup import date, password
1616
from roundup.htmltemplate import TemplateFunctions
@@ -237,7 +237,7 @@ def testReldate_nondate(self):
237237
def testReldate_date(self):
238238
self.assertEqual(self.tf.do_reldate('date'), '- 2y 1m')
239239
self.assertEqual(self.tf.do_reldate('date', pretty=1),
240-
' 1 January 2000')
240+
' 1 %s 2000' % time.strftime('%B', time.localtime(0)))
241241

242242
# def do_download(self, property):
243243
def testDownload_novalue(self):
@@ -314,6 +314,9 @@ def suite():
314314

315315
#
316316
# $Log: not supported by cvs2svn $
317+
# Revision 1.6 2002/01/23 05:47:57 richard
318+
# more HTML template cleanup and unit tests
319+
#
317320
# Revision 1.5 2002/01/23 05:10:28 richard
318321
# More HTML template cleanup and unit tests.
319322
# - download() now implemented correctly, replacing link(is_download=1) [fixed in the

0 commit comments

Comments
 (0)