Skip to content

Commit 2bb2521

Browse files
committed
PYTHON-2970 Ignore non-json spec test files
1 parent e32a004 commit 2bb2521

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_discovery_and_monitoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def create_tests():
220220
dirname = os.path.split(dirpath)[-1]
221221

222222
for filename in filenames:
223+
if os.path.splitext(filename)[1] != ".json":
224+
continue
223225
with open(os.path.join(dirpath, filename)) as scenario_stream:
224226
scenario_def = json_util.loads(scenario_stream.read())
225227

0 commit comments

Comments
 (0)