diff options
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-01-24 22:15:21 +0000 |
|---|---|---|
| committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-01-24 22:15:21 +0000 |
| commit | b808e99d34dc27204d2c8ad07489c2ba84dd98f5 (patch) | |
| tree | d896af47fe81a84f6e22cd5ef5a01c87db84acaa /Lib/test/test_datetime.py | |
| parent | 3422c99de1d1c001ebc1416e3efc1b10452347b5 (diff) | |
| download | cpython-git-b808e99d34dc27204d2c8ad07489c2ba84dd98f5.tar.gz | |
Raise a TypeError if a float is passed when an integer is specified.
Calling PyInt_AsLong() on a float truncates it which is almost never
the desired behavior. This closes SF bug #660144.
Diffstat (limited to 'Lib/test/test_datetime.py')
0 files changed, 0 insertions, 0 deletions
