Skip to content

Commit c07b81e

Browse files
committed
fixed pep8
1 parent a8bd6b7 commit c07b81e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

python/pyspark/tests.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,26 +1435,26 @@ def createFileInZip(self, name, content, ext=".zip", dir=None, zip_name=None):
14351435
zip.writestr(name, content)
14361436
zip.close()
14371437
return path
1438-
1438+
14391439
def create_spark_package(self, artifact_name):
14401440
group_id, artifact_id, version = artifact_name.split(":")
14411441
self.createTempFile("%s-%s.pom" % (artifact_id, version), ("""
14421442
|<?xml version="1.0" encoding="UTF-8"?>
14431443
|<project xmlns="http://maven.apache.org/POM/4.0.0"
14441444
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1445-
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
1445+
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
14461446
| http://maven.apache.org/xsd/maven-4.0.0.xsd">
14471447
| <modelVersion>4.0.0</modelVersion>
14481448
| <groupId>%s</groupId>
14491449
| <artifactId>%s</artifactId>
14501450
| <version>%s</version>
14511451
|</project>
1452-
""" % (group_id, artifact_id, version)).lstrip(),
1453-
os.path.join(group_id, artifact_id, version))
1452+
""" % (group_id, artifact_id, version)).lstrip(),
1453+
os.path.join(group_id, artifact_id, version))
14541454
self.createFileInZip("%s.py" % artifact_id, """
14551455
|def myfunc(x):
14561456
| return x + 1
1457-
""", ".jar", os.path.join(group_id, artifact_id, version),
1457+
""", ".jar", os.path.join(group_id, artifact_id, version),
14581458
"%s-%s" % (artifact_id, version))
14591459

14601460
def test_single_script(self):
@@ -1537,7 +1537,6 @@ def test_package_dependency(self):
15371537
self.create_spark_package("a:mylib:0.1")
15381538
proc = subprocess.Popen([self.sparkSubmit, "--packages", "a:mylib:0.1", "--repositories",
15391539
"file:" + self.programDir, script], stdout=subprocess.PIPE)
1540-
15411540
out, err = proc.communicate()
15421541
self.assertEqual(0, proc.returncode)
15431542
self.assertIn("[2, 3, 4]", out)
@@ -1553,7 +1552,7 @@ def test_package_dependency_on_cluster(self):
15531552
""")
15541553
self.create_spark_package("a:mylib:0.1")
15551554
proc = subprocess.Popen([self.sparkSubmit, "--packages", "a:mylib:0.1", "--repositories",
1556-
"file:" + self.programDir, "--master",
1555+
"file:" + self.programDir, "--master",
15571556
"local-cluster[1,1,512]", script], stdout=subprocess.PIPE)
15581557
out, err = proc.communicate()
15591558
self.assertEqual(0, proc.returncode)

0 commit comments

Comments
 (0)