Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
ZODB
Commits
8d3095b4
Commit
8d3095b4
authored
21 years ago
by
Tim Peters
Browse files
Options
Download
Email Patches
Plain Diff
Removed decoys (unused method and instance vars) from class TestThread.
parent
3baeea9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
trunk/src/ZODB/tests/MTStorage.py
trunk/src/ZODB/tests/MTStorage.py
+3
-8
No files found.
trunk/src/ZODB/tests/MTStorage.py
View file @
8d3095b4
...
...
@@ -30,10 +30,8 @@ class TestThread(threading.Thread):
method.
"""
def
__init__
(
self
,
test
):
def
__init__
(
self
):
threading
.
Thread
.
__init__
(
self
)
self
.
test
=
test
self
.
_fail
=
None
self
.
_exc_info
=
None
def
run
(
self
):
...
...
@@ -42,9 +40,6 @@ class TestThread(threading.Thread):
except
:
self
.
_exc_info
=
sys
.
exc_info
()
def
fail
(
self
,
msg
=
""
):
self
.
_test
.
fail
(
msg
)
def
join
(
self
,
timeout
=
None
):
threading
.
Thread
.
join
(
self
,
timeout
)
if
self
.
_exc_info
:
...
...
@@ -55,7 +50,7 @@ class ZODBClientThread(TestThread):
__super_init
=
TestThread
.
__init__
def
__init__
(
self
,
db
,
test
,
commits
=
10
,
delay
=
SHORT_DELAY
):
self
.
__super_init
(
test
)
self
.
__super_init
()
self
.
setDaemon
(
1
)
self
.
db
=
db
self
.
test
=
test
...
...
@@ -102,7 +97,7 @@ class StorageClientThread(TestThread):
__super_init
=
TestThread
.
__init__
def
__init__
(
self
,
storage
,
test
,
commits
=
10
,
delay
=
SHORT_DELAY
):
self
.
__super_init
(
test
)
self
.
__super_init
()
self
.
storage
=
storage
self
.
test
=
test
self
.
commits
=
commits
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment