|  | 
| 23 | 23 | from vllm.config import ParallelConfig, VllmConfig, set_current_vllm_config | 
| 24 | 24 | from vllm.transformers_utils.detokenizer_utils import ( | 
| 25 | 25 |     convert_ids_list_to_tokens) | 
| 26 |  | -from vllm.utils import (CacheInfo, FlexibleArgumentParser, LRUCache, | 
| 27 |  | -                        MemorySnapshot, PlaceholderModule, StoreBoolean, | 
| 28 |  | -                        bind_kv_cache, common_broadcastable_dtype, | 
| 29 |  | -                        current_stream, deprecate_kwargs, get_open_port, | 
| 30 |  | -                        get_tcp_uri, is_lossless_cast, join_host_port, | 
| 31 |  | -                        make_zmq_path, make_zmq_socket, memory_profiling, | 
| 32 |  | -                        merge_async_iterators, sha256, split_host_port, | 
| 33 |  | -                        split_zmq_path, supports_kw, swap_dict_values, | 
| 34 |  | -                        unique_filepath) | 
| 35 | 26 | 
 | 
|  | 27 | +# isort: off | 
|  | 28 | +from vllm.utils import ( | 
|  | 29 | +    CacheInfo, FlexibleArgumentParser, LRUCache, MemorySnapshot, | 
|  | 30 | +    PlaceholderModule, bind_kv_cache, common_broadcastable_dtype, | 
|  | 31 | +    current_stream, deprecate_kwargs, get_open_port, get_tcp_uri, | 
|  | 32 | +    is_lossless_cast, join_host_port, make_zmq_path, make_zmq_socket, | 
|  | 33 | +    memory_profiling, merge_async_iterators, sha256, split_host_port, | 
|  | 34 | +    split_zmq_path, supports_kw, swap_dict_values, unique_filepath) | 
|  | 35 | +# isort: on | 
| 36 | 36 | from ..utils import create_new_process_for_each_test, error_on_warning | 
| 37 | 37 | 
 | 
| 38 | 38 | 
 | 
| @@ -1036,13 +1036,11 @@ def test_load_config_file(tmp_path): | 
| 1036 | 1036 | 
 | 
| 1037 | 1037 | 
 | 
| 1038 | 1038 | def test_unique_filepath(): | 
| 1039 |  | -    # make temp directory | 
| 1040 | 1039 |     temp_dir = tempfile.mkdtemp() | 
| 1041 | 1040 |     path_fn = lambda i: Path(temp_dir) / f"file_{i}.txt" | 
| 1042 | 1041 |     paths = set() | 
| 1043 | 1042 |     for i in range(10): | 
| 1044 | 1043 |         path = unique_filepath(path_fn) | 
| 1045 |  | -        # write to file | 
| 1046 | 1044 |         path.write_text("test") | 
| 1047 | 1045 |         paths.add(path) | 
| 1048 | 1046 |     assert len(paths) == 10 | 
|  | 
0 commit comments