mirror of
https://github.com/mirror/wget.git
synced 2024-12-30 23:10:13 +08:00
Correct the call to stop_HTTP_Server
This commit is contained in:
parent
f616192dfd
commit
7e1f4c1abc
@ -1,3 +1,7 @@
|
|||||||
|
2013-12-26 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
|
* WgetTest.py (HTTPTest.call_test): Correct the call to stop_HTTP_Server.
|
||||||
|
|
||||||
2013-12-25 Darshit Shah <darnir@gmail.com>
|
2013-12-25 Darshit Shah <darnir@gmail.com>
|
||||||
|
|
||||||
* WgetTest.py (CommonMehtods.exec_wget): Catch and handle exception if the
|
* WgetTest.py (CommonMehtods.exec_wget): Catch and handle exception if the
|
||||||
|
@ -261,7 +261,7 @@ class HTTPTest (CommonMethods):
|
|||||||
try:
|
try:
|
||||||
assert hasattr (self, pre_hook_func)
|
assert hasattr (self, pre_hook_func)
|
||||||
except AssertionError as ae:
|
except AssertionError as ae:
|
||||||
self.stop_HTTP_Server (self.server)
|
self.stop_HTTP_Server ()
|
||||||
raise TestFailed ("Pre Test Function " + pre_hook_func + " not defined.")
|
raise TestFailed ("Pre Test Function " + pre_hook_func + " not defined.")
|
||||||
getattr (self, pre_hook_func) (pre_hook[pre_hook_func])
|
getattr (self, pre_hook_func) (pre_hook[pre_hook_func])
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ class HTTPTest (CommonMethods):
|
|||||||
try:
|
try:
|
||||||
assert hasattr (self, test_func)
|
assert hasattr (self, test_func)
|
||||||
except AssertionError as ae:
|
except AssertionError as ae:
|
||||||
self.stop_HTTP_Server (self.server)
|
self.stop_HTTP_Server ()
|
||||||
raise TestFailed ("Test Option " + test_func + " unknown.")
|
raise TestFailed ("Test Option " + test_func + " unknown.")
|
||||||
getattr (self, test_func) (test_params[test_func])
|
getattr (self, test_func) (test_params[test_func])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user