[issue25029] MemoryError in test_strptime

STINNER Victor report at bugs.python.org
Tue Sep 8 15:40:36 CEST 2015


STINNER Victor added the comment:

Oh wait, the VmPeak is *much* high when running test_strptime:

* test_os VmPeak: 380 992 kB
* test_strptime VmPeak: 8 608 972 kB (8 GB!?)

1 GB should be enough for everybody:

$ bash -c 'ulimit -v 1000000; ./python -m test -v test_strptime'
..
======================================================================
ERROR: test_TimeRE_recreation (test.test_strptime.CacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  ...
  File "/home/haypo/prog/python/default/Lib/_strptime.py", line 75, in __init__
    self.__calc_am_pm()
  File "/home/haypo/prog/python/default/Lib/_strptime.py", line 114, in __calc_am_pm
    am_pm.append(time.strftime("%p", time_tuple).lower())
MemoryError

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25029>
_______________________________________


More information about the Python-bugs-list mailing list