Skip to content

Commit 221e920

Browse files
committed
Fix uniqueness checker to anchor grep to line-start class definitions
grep class matched issubclass() calls too, causing false duplicate detection when test_parse_strict.py was added alongside test_file_size.py (both assert issubclass(..., DeprecationWarning)). Changing to grep "^class" restricts matching to actual class definition lines only.
1 parent 7b2f8f7 commit 221e920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_unique_testcase_names.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
grep class tests/*.py | awk '{
3+
grep "^class" tests/*.py | awk '{
44
arr[$NF]++
55
}
66
END {

0 commit comments

Comments
 (0)