File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
import os
19
+ import platform
19
20
import tempfile
21
+ import unittest
20
22
21
23
from pyspark .testing .sqlutils import ReusedSQLTestCase
22
24
@@ -278,12 +280,14 @@ class WriterWithNonCallableClose(WithProcess):
278
280
tester .assert_invalid_writer (WriterWithNonCallableClose (), "ATTRIBUTE_NOT_CALLABLE" )
279
281
280
282
283
+ @unittest .skipIf (
284
+ "pypy" in platform .python_implementation ().lower (), "cannot run in environment pypy"
285
+ )
281
286
class StreamingTestsForeach (StreamingTestsForeachMixin , ReusedSQLTestCase ):
282
287
pass
283
288
284
289
285
290
if __name__ == "__main__" :
286
- import unittest
287
291
from pyspark .sql .tests .streaming .test_streaming_foreach import * # noqa: F401
288
292
289
293
try :
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
#
17
+
18
+ import platform
19
+ import unittest
20
+
17
21
from pyspark .streaming import StreamingListener
18
22
from pyspark .testing .streamingutils import PySparkStreamingTestCase
19
23
20
24
25
+ @unittest .skipIf (
26
+ "pypy" in platform .python_implementation ().lower (), "cannot run in environment pypy"
27
+ )
21
28
class StreamingListenerTests (PySparkStreamingTestCase ):
22
29
duration = 0.5
23
30
@@ -147,7 +154,6 @@ def func(dstream):
147
154
148
155
149
156
if __name__ == "__main__" :
150
- import unittest
151
157
from pyspark .streaming .tests .test_listener import * # noqa: F401
152
158
153
159
try :
You can’t perform that action at this time.
0 commit comments