diff --git a/Tests/Python/test_matrix_debug_output.py b/Tests/Python/test_matrix_debug_output.py
index b4c7946cf5a752e82f322e22aabc1e5b025115bc..2f4b4436d4a66371f7157a7ad6d0632f656831fb 100644
--- a/Tests/Python/test_matrix_debug_output.py
+++ b/Tests/Python/test_matrix_debug_output.py
@@ -52,24 +52,14 @@ def check_global_matrix_output_files_exist(outdir, file_should_exist=True):
     map_filename_to_num_lines = {
         "ogs_global_matrix_cnt_001_t_0.25_pcs_0_b.vec": 243,
         "ogs_global_matrix_cnt_001_t_0.25_pcs_0_Jac.mat": 3846,
-        "ogs_global_matrix_cnt_001_t_0.25_pcs_0_K.mat": 2,  # global K and M matrices are empty
-        "ogs_global_matrix_cnt_001_t_0.25_pcs_0_M.mat": 2,
         "ogs_global_matrix_cnt_002_t_0.25_pcs_0_b.vec": 243,
         "ogs_global_matrix_cnt_002_t_0.25_pcs_0_Jac.mat": 3846,
-        "ogs_global_matrix_cnt_002_t_0.25_pcs_0_K.mat": 2,
-        "ogs_global_matrix_cnt_002_t_0.25_pcs_0_M.mat": 2,
         "ogs_global_matrix_cnt_003_t_0.5_pcs_0_b.vec": 243,
         "ogs_global_matrix_cnt_003_t_0.5_pcs_0_Jac.mat": 3846,
-        "ogs_global_matrix_cnt_003_t_0.5_pcs_0_K.mat": 2,
-        "ogs_global_matrix_cnt_003_t_0.5_pcs_0_M.mat": 2,
         "ogs_global_matrix_cnt_004_t_0.75_pcs_0_b.vec": 243,
         "ogs_global_matrix_cnt_004_t_0.75_pcs_0_Jac.mat": 3846,
-        "ogs_global_matrix_cnt_004_t_0.75_pcs_0_K.mat": 2,
-        "ogs_global_matrix_cnt_004_t_0.75_pcs_0_M.mat": 2,
         "ogs_global_matrix_cnt_005_t_1_pcs_0_b.vec": 243,
         "ogs_global_matrix_cnt_005_t_1_pcs_0_Jac.mat": 3846,
-        "ogs_global_matrix_cnt_005_t_1_pcs_0_K.mat": 2,
-        "ogs_global_matrix_cnt_005_t_1_pcs_0_M.mat": 2,
     }
 
     for f, num_lines_expected in map_filename_to_num_lines.items():