|
10 | 10 | class TestRelease(IntegrationHelper): |
11 | 11 | """Release class integration tests.""" |
12 | 12 |
|
13 | | - @pytest.mark.xfail('os.environ.get("OSTYPE") == "cygwin"') |
14 | | - def test_archive(self): |
15 | | - """Test the ability to download a release archive.""" |
16 | | - cassette_name = self.cassette_name("archive") |
17 | | - with self.recorder.use_cassette(cassette_name, preserve_exact_body_bytes=True): |
18 | | - repository = self.gh.repository("sigmavirus24", "github3.py") |
19 | | - release = repository.release(76677) |
20 | | - _, filename = tempfile.mkstemp() |
21 | | - release.archive("tarball", path=filename) |
22 | | - |
23 | | - with open(filename, "rb") as fd: |
24 | | - assert len(fd.read(1024)) > 0 |
25 | | - |
26 | | - os.unlink(filename) |
| 13 | + # @pytest.mark.xfail('os.environ.get("OSTYPE") == "cygwin"') |
| 14 | + # def test_archive(self): |
| 15 | + # """Test the ability to download a release archive.""" |
| 16 | + # cassette_name = self.cassette_name("archive") |
| 17 | + # with self.recorder.use_cassette(cassette_name, preserve_exact_body_bytes=True): |
| 18 | + # repository = self.gh.repository("sigmavirus24", "github3.py") |
| 19 | + # release = repository.release(76677) |
| 20 | + # _, filename = tempfile.mkstemp() |
| 21 | + # release.archive("tarball", path=filename) |
| 22 | + |
| 23 | + # with open(filename, "rb") as fd: |
| 24 | + # assert len(fd.read(1024)) > 0 |
| 25 | + |
| 26 | + # os.unlink(filename) |
27 | 27 |
|
28 | 28 | def test_asset(self): |
29 | 29 | """Test the ability to retrieve a single asset from a release.""" |
|
0 commit comments