repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make file closing more robust
[python/dscho.git]
/
Lib
/
test
/
test_longexp.py
blob
1b40d0298318916c639a13c7092f58cb7de744e1
1
import
unittest
2
from
test
import
support
3
4
class
LongExpText
(
unittest
.
TestCase
):
5
def
test_longexp
(
self
):
6
REPS
=
65580
7
l
=
eval
(
"["
+
"2,"
*
REPS
+
"]"
)
8
self
.
assertEqual
(
len
(
l
),
REPS
)
9
10
def
test_main
():
11
support
.
run_unittest
(
LongExpText
)
12
13
if
__name__
==
"__main__"
:
14
test_main
()