Skip to content

Commit 6e4f236

Browse files
committed
review feedback
1 parent 3ce8a98 commit 6e4f236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/tests/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def test_forbid_insecure_gateway(self):
252252
# with an insecure gateway
253253
parameters = namedtuple('MockGatewayParameters', 'auth_token')(None)
254254
mock_insecure_gateway = namedtuple('MockJavaGateway', 'gateway_parameters')(parameters)
255-
with self.assertRaises(Exception) as context:
255+
with self.assertRaises(ValueError) as context:
256256
SparkContext(gateway=mock_insecure_gateway)
257257
self.assertIn("insecure Py4j gateway", str(context.exception))
258258

0 commit comments

Comments
 (0)