This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients facundobatista, mark.dickinson, rhettinger, skrah, vstinner
Date 2018-05-30.22:34:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527719641.19.0.682650639539.issue33701@psf.upfronthosting.co.za>
In-reply-to
Content
https://travis-ci.org/python/cpython/jobs/385458840

0:00:11 load avg: 22.29 [ 23/415/1] test_datetime crashed (Exit code -11)
Fatal Python error: Segmentation fault
Current thread 0x00002b52f7326400 (most recent call first):
  File "/home/travis/build/python/cpython/Lib/test/datetimetester.py", line 4630 in test_check_arg_types
  File "/home/travis/build/python/cpython/Lib/unittest/case.py", line 615 in run
  File "/home/travis/build/python/cpython/Lib/unittest/case.py", line 663 in __call__
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/travis/build/python/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/travis/build/python/cpython/Lib/unittest/runner.py", line 176 in run
  (...)

Lib/test/datetimetester.py:4630:

    def test_check_arg_types(self):
        class Number:
            def __init__(self, value):
                self.value = value
            def __int__(self):
                return self.value

        for xx in [decimal.Decimal(10),    <~~~ HERE
                   decimal.Decimal('10.9'),
                   Number(10)]:
            self.assertEqual(datetime(10, 10, 10, 10, 10, 10, 10),
                             datetime(xx, xx, xx, xx, xx, xx, xx))


Hum, this bug looks like bpo-33627.

Is it a bug in the _decimal module?
History
Date User Action Args
2018-05-30 22:34:01vstinnersetrecipients: + vstinner, rhettinger, facundobatista, mark.dickinson, skrah
2018-05-30 22:34:01vstinnersetmessageid: <1527719641.19.0.682650639539.issue33701@psf.upfronthosting.co.za>
2018-05-30 22:34:01vstinnerlinkissue33701 messages
2018-05-30 22:34:01vstinnercreate