Skip to content

Commit 87b1d59

Browse files
committed
update test
1 parent 44ecafb commit 87b1d59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python_files/tests/unittestadapter/test_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,10 @@ def test_build_empty_tree() -> None:
284284
start_dir = os.fsdecode(TEST_DATA_PATH)
285285
pattern = "does_not_exist*"
286286

287-
expected = None
288-
289287
loader = unittest.TestLoader()
290288
suite = loader.discover(start_dir, pattern)
291289
tests, errors = build_test_tree(suite, start_dir)
292290

293-
assert expected == tests
291+
assert tests.get("children") == []
292+
assert tests is not None
294293
assert not errors

0 commit comments

Comments
 (0)