Commit 18855566 authored by Jérome Perrin's avatar Jérome Perrin

testDateTime: skip a non applicable test

parent c6a6d6a4
...@@ -329,7 +329,7 @@ def test_suite(): ...@@ -329,7 +329,7 @@ def test_suite():
suite.addTest(unittest.makeSuite(TestTimeZoneContext)) suite.addTest(unittest.makeSuite(TestTimeZoneContext))
suite.addTest(unittest.makeSuite(TestDateTimePatch)) suite.addTest(unittest.makeSuite(TestDateTimePatch))
# also run original tests from DateTime module # also run original tests from DateTime module BBB ZOPE2
# pylint:disable=no-name-in-module # pylint:disable=no-name-in-module
try: try:
import DateTime.tests.testDateTime as test_datetime import DateTime.tests.testDateTime as test_datetime
...@@ -340,6 +340,10 @@ def test_suite(): ...@@ -340,6 +340,10 @@ def test_suite():
class DateTimeTests(test_datetime.DateTimeTests): class DateTimeTests(test_datetime.DateTimeTests):
testTimezoneNaiveHandling = unittest.expectedFailure( testTimezoneNaiveHandling = unittest.expectedFailure(
test_datetime.DateTimeTests.testTimezoneNaiveHandling) test_datetime.DateTimeTests.testTimezoneNaiveHandling)
# ERP5 never used the pickle format with micros as float
# https://github.com/zopefoundation/DateTime/pull/62
test_pickle_old_with_micros_as_float = unittest.expectedFailure(
test_datetime.DateTimeTests.test_pickle_old_with_micros_as_float)
# This test is only in DateTime >= 3 # This test is only in DateTime >= 3
if hasattr(test_datetime.DateTimeTests, 'test_intl_format_hyphen'): if hasattr(test_datetime.DateTimeTests, 'test_intl_format_hyphen'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment