@@ -122,7 +122,7 @@ def test_search(self):
122122 self .process_events ()
123123 out_corpus = self .get_output (self .widget .Outputs .matching_docs )
124124 self .assertEqual (len (out_corpus ), 1 )
125- self .assertEqual (self .widget .n_matches , 7 )
125+ self .assertEqual (int ( self .widget .n_matches ) , 7 )
126126
127127 # first document is selected, when filter with word that is not in
128128 # selected document, first of shown documents is selected
@@ -131,14 +131,14 @@ def test_search(self):
131131 self .process_events ()
132132 self .assertEqual (1 , len (self .get_output (self .widget .Outputs .matching_docs )))
133133 # word count doesn't depend on selection
134- self .assertEqual (self .widget .n_matches , 7 )
134+ self .assertEqual (int ( self .widget .n_matches ) , 7 )
135135
136136 # when filter is removed, matched words is 0
137137 self .widget .regexp_filter = ""
138138 self .widget .refresh_search ()
139139 self .process_events ()
140140 self .wait_until_finished ()
141- self .assertEqual (self .widget .n_matches , 0 )
141+ self .assertEqual (int ( self .widget .n_matches ) , 0 )
142142
143143 def test_invalid_regex (self ):
144144 # Error is shown when invalid regex is entered
0 commit comments