freezer/freezer/tests/unit/scheduler
Caihui 19aae78daf Fix bug "AttributeError: 'generator' object has no attribute 'next'"
1. the bug:
   Captured traceback:
   ~~~~~~~~~~~~~~~~~~~
	Traceback (most recent call last):

	File "/opt/stack/freezer/freezer/tests/unit/scheduler/test_utils.py", line 53, in test_find_config_files_path
	ret = utils.find_config_files(temp_path)

	File "/opt/stack/freezer/freezer/scheduler/utils.py", line 53, in find_config_files
	for fname in os.walk(expanded_path).next()[2]:

	AttributeError: 'generator' object has no attribute 'next'

2. fix:
To get iterobject next element  is  changed to next(iterobject,defalt) in python3.x.

Change-Id: I558bbfecb4a9670a10b1fc649821d88619b7917c
2020-06-30 01:58:27 -07:00
..
__init__.py change directory structure for unit tests 2016-09-13 19:56:43 +05:30
test_scheduler_daemon.py Use unittest.mock instead of third party mock 2020-04-08 22:54:37 +08:00
test_scheduler_job.py Fix parsing config file for freezer job 2020-02-03 12:54:36 +01:00
test_utils.py Fix bug "AttributeError: 'generator' object has no attribute 'next'" 2020-06-30 01:58:27 -07:00