Skip to content

Commit 82cde24

Browse files
committed
further skip
1 parent 040069c commit 82cde24

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

python/pyspark/sql/tests/streaming/test_streaming_foreach.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#
1717

1818
import os
19+
import platform
1920
import tempfile
21+
import unittest
2022

2123
from pyspark.testing.sqlutils import ReusedSQLTestCase
2224

@@ -278,12 +280,14 @@ class WriterWithNonCallableClose(WithProcess):
278280
tester.assert_invalid_writer(WriterWithNonCallableClose(), "ATTRIBUTE_NOT_CALLABLE")
279281

280282

283+
@unittest.skipIf(
284+
"pypy" in platform.python_implementation().lower(), "cannot run in environment pypy"
285+
)
281286
class StreamingTestsForeach(StreamingTestsForeachMixin, ReusedSQLTestCase):
282287
pass
283288

284289

285290
if __name__ == "__main__":
286-
import unittest
287291
from pyspark.sql.tests.streaming.test_streaming_foreach import * # noqa: F401
288292

289293
try:

python/pyspark/streaming/tests/test_listener.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
18+
import platform
19+
import unittest
20+
1721
from pyspark.streaming import StreamingListener
1822
from pyspark.testing.streamingutils import PySparkStreamingTestCase
1923

2024

25+
@unittest.skipIf(
26+
"pypy" in platform.python_implementation().lower(), "cannot run in environment pypy"
27+
)
2128
class StreamingListenerTests(PySparkStreamingTestCase):
2229
duration = 0.5
2330

@@ -147,7 +154,6 @@ def func(dstream):
147154

148155

149156
if __name__ == "__main__":
150-
import unittest
151157
from pyspark.streaming.tests.test_listener import * # noqa: F401
152158

153159
try:

0 commit comments

Comments
 (0)