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 3ce8a98 commit 6e4f236Copy full SHA for 6e4f236
python/pyspark/tests/test_context.py
@@ -252,7 +252,7 @@ def test_forbid_insecure_gateway(self):
252
# with an insecure gateway
253
parameters = namedtuple('MockGatewayParameters', 'auth_token')(None)
254
mock_insecure_gateway = namedtuple('MockJavaGateway', 'gateway_parameters')(parameters)
255
- with self.assertRaises(Exception) as context:
+ with self.assertRaises(ValueError) as context:
256
SparkContext(gateway=mock_insecure_gateway)
257
self.assertIn("insecure Py4j gateway", str(context.exception))
258
0 commit comments