We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c352a9a commit 999deb3Copy full SHA for 999deb3
test/framework/filetools.py
@@ -2589,7 +2589,10 @@ def run_check():
2589
2590
# use a tag that clashes with a branch name and make sure this is handled correctly
2591
git_config['tag'] = 'tag_for_tests'
2592
- res = ft.get_source_tarball_from_git('test.tar.gz', target_dir, git_config)
+ with self.mocked_stdout_stderr():
2593
+ res = ft.get_source_tarball_from_git('test.tar.gz', target_dir, git_config)
2594
+ stderr = self.get_stderr()
2595
+ self.assertIn('Tag tag_for_tests was not downloaded in the first try', stderr)
2596
self.assertEqual(res, test_file)
2597
self.assertTrue(os.path.isfile(test_file))
2598
# Check that we indeed downloaded the tag and not the branch
0 commit comments