import os
import time
+import warnings
import test_utils
del handle
-def test_startup_with_no_data_dir_with_dummy_hildon():
+def atest_startup_with_no_data_dir_with_dummy_hildon():
+ warnings.simplefilter("always")
hildonPath = os.path.join(os.path.dirname(__file__), "dummy_hildon")
sys.path.insert(0, hildonPath)
import hildon
except:
pass
finally:
- dc_glade.Dialcentral.hildon = None
+ dc_glade.hildon = None
sys.path.remove(hildonPath)
+ warnings.resetwarnings()
-def test_startup_with_no_data_dir():
+def atest_startup_with_no_data_dir():
+ warnings.simplefilter("always")
dc_glade.Dialcentral._data_path = os.path.join(os.path.dirname(__file__), "notexistent_data")
dc_glade.Dialcentral._user_settings = "%s/settings.ini" % dc_glade.Dialcentral._data_path
os.removedirs(dc_glade.Dialcentral._data_path)
except:
pass
+ warnings.resetwarnings()
-def test_startup_with_empty_data_dir():
+def atest_startup_with_empty_data_dir():
+ warnings.simplefilter("always")
dc_glade.Dialcentral._data_path = os.path.join(os.path.dirname(__file__), "empty_data")
dc_glade.Dialcentral._user_settings = "%s/settings.ini" % dc_glade.Dialcentral._data_path
os.removedirs(dc_glade.Dialcentral._data_path)
except:
pass
+ warnings.resetwarnings()
-def test_startup_with_basic_data_dir():
- dc_glade.Dialcentral._data_path = os.path.join(os.path.dirname(__file__), "basic_data")
- dc_glade.Dialcentral._user_settings = "%s/settings.ini" % dc_glade.Dialcentral._data_path
+def atest_startup_with_basic_data_dir():
+ warnings.simplefilter("always")
+ try:
+ dc_glade.Dialcentral._data_path = os.path.join(os.path.dirname(__file__), "basic_data")
+ dc_glade.Dialcentral._user_settings = "%s/settings.ini" % dc_glade.Dialcentral._data_path
- startup(dc_glade.Dialcentral)
+ startup(dc_glade.Dialcentral)
+ finally:
+ warnings.resetwarnings()