Skip to content

Commit

Permalink
Merge pull request #4733 from branfosj/skip-test_fetch_sources_git
Browse files Browse the repository at this point in the history
allow deprecated behaviour when running `test_fetch_sources_git` with Python < 3.9
  • Loading branch information
boegel authored Dec 30, 2024
2 parents e361bb6 + 550df4d commit 52d3f9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,9 +1714,16 @@ def test_fetch_sources_git(self):
}
]
checksums = ["00000000"]

if sys.version_info[0] >= 3 and sys.version_info[1] < 9:
self.allow_deprecated_behaviour()

with self.mocked_stdout_stderr():
eb.fetch_sources(sources, checksums=checksums)

if sys.version_info[0] >= 3 and sys.version_info[1] < 9:
self.disallow_deprecated_behaviour()

self.assertEqual(len(eb.src), 1)
self.assertEqual(eb.src[0]['name'], "testrepository.tar.xz")
self.assertExists(eb.src[0]['path'])
Expand Down

0 comments on commit 52d3f9e

Please sign in to comment.