New submission from Yang Feng :
In documentation of random.getstate(), it says:
“random.getstate()
Return an object capturing the current internal state of the generator. This
object can be passed to setstate() to restore the state.”
random.getstate() takes 0 argument and return the current
Yang Feng added the comment:
Could you please tell me your secret method of getting the minimal script?
I will try to provide minimal ones in our following work.
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Yang Feng :
In the following program, we call check_free_after_iterating( ) twice, in the
second time, we recursively call function test_free_after_iterating(). Python
interpreter crashes.
+++
import unittest
import test.support
New submission from Yang Feng :
We use run_with_locale() as decorator function, then we recursively call
test_float__format__locale in the following example. Python interpreter crashes.
+++
from test.support import run_with_locale
@run_with_locale
New submission from Yang Feng :
In the following programs, we call check_reentrant_insertion("s") twice, after
multiple of update and clear of dict, the Python interpreter crashes.
+++
def check_reentrant_insertion(mutate):
clas
New submission from Yang Feng :
In the following programs, dict is created in recursive calls. Then a core dump
is reported by Python interpreter.
+++
def test_equal_operator_modifying_operand():
class X():
def __del__(DictTest
New submission from Yang Feng :
In following teststr.py, class MyString is nestedly instanced in method
__getattr__(). This script will lead to a "core dump" in Python interpreter.
My Python version is 3.9.1 and my operating system is Ubuntu 16.04.
New submission from Yang Feng :
Seeing the following program, in the second assertRaises(), function
"test_invalid_adpcm_state()" is recursively called. Then a fatal Python error
shows up and the Python interpreter crashes.
++
import unitt