blob: bbd7b7e289fc14c64cb59d47c2ef19acba2f3e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from test_support import vereq
import time
t = time.gmtime()
astuple = tuple(t)
vereq(len(t), len(astuple))
vereq(t, astuple)
# Check that slicing works the same way; at one point, slicing t[i:j] with
# 0 < i < j could produce NULLs in the result.
for i in range(-len(t), len(t)):
for j in range(-len(t), len(t)):
vereq(t[i:j], astuple[i:j])
# XXX more needed
|