Skip to content

Commit ab7f3bb

Browse files
committed
@ test_cli_2d.py : suppress: <sys>:0: DeprecationWarning too.
1 parent 8c84123 commit ab7f3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_cli_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def test_pcdl_get_anndata_timeseries_customtype(self):
841841
s_result = subprocess.run(['pcdl_get_anndata', s_path_2d, '--custom_data_type', 'sample:bool'], check=False, capture_output=True)
842842
#print(f'\ns_result.stdout: {s_result.stdout}\n')
843843
print(f'\ns_result.stderr: {s_result.stderr}\n')
844-
s_opathfile = s_result.stderr.decode('UTF8').replace('\r','').replace('\n','').replace('<sys>:0','sys:1:').replace('sys:1: DeprecationWarning: Call to deprecated function (or staticmethod) _destroy.','') # bue 20250307: >= python3.11
844+
s_opathfile = s_result.stderr.decode('UTF8').replace('\r','').replace('\n','').replace('<sys>:0:','sys:1:').replace('sys:1: DeprecationWarning: Call to deprecated function (or staticmethod) _destroy.','') # bue 20250307: >= python3.11
845845
ann = ad.read_h5ad(s_opathfile)
846846
assert (s_opathfile.endswith('output_2d/timeseries_cell_maxabs.h5ad')) and \
847847
(set(ann.var_names).issuperset({'sample'})) and \

0 commit comments

Comments
 (0)