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 10022d6 commit 720586dCopy full SHA for 720586d
jenkinsapi_tests/unittests/test_plugins.py
@@ -6,10 +6,7 @@
6
7
import unittest
8
9
-try:
10
- from StringIO import StringIO # python2
11
-except ImportError:
12
- from io import BytesIO as StringIO # python3
+from io import BytesIO
13
import zipfile
14
15
from jenkinsapi.jenkins import Requester
@@ -279,7 +276,7 @@ def test_get_plugin_dependencies(self, _poll_plugins):
279
276
"bla: somestuff\n"
280
277
"Plugin-Dependencies: aws-java-sdk:1.10.45,aws-credentials:1.15"
281
278
)
282
- downloaded_plugin = StringIO()
+ downloaded_plugin = BytesIO()
283
zipfile.ZipFile(downloaded_plugin, mode="w").writestr(
284
"META-INF/MANIFEST.MF", manifest
285
0 commit comments