Skip to content

Commit 2b1cab4

Browse files
committed
Run PyPy tests in Actions CI but skip some tests.test_ftpfs test cases
1 parent 9ab0bd5 commit 2b1cab4

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- 3.7
1717
- 3.8
1818
- 3.9
19+
- pypy-2.7
20+
- pypy-3.6
21+
- pypy-3.7
1922
steps:
2023
- name: Checkout code
2124
uses: actions/checkout@v1

tests/test_ftpfs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from __future__ import print_function
44
from __future__ import unicode_literals
55

6-
import socket
76
import os
87
import platform
98
import shutil
9+
import socket
1010
import tempfile
1111
import time
1212
import unittest
@@ -133,6 +133,7 @@ def test_manager_with_host(self):
133133

134134

135135
@mark.slow
136+
@unittest.skipIf(platform.python_implementation() == "PyPy", "ftp unreliable with PyPy")
136137
class TestFTPFS(FSTestCases, unittest.TestCase):
137138

138139
user = "user"
@@ -283,6 +284,7 @@ def test_features(self):
283284

284285

285286
@mark.slow
287+
@unittest.skipIf(platform.python_implementation() == "PyPy", "ftp unreliable with PyPy")
286288
class TestAnonFTPFS(FSTestCases, unittest.TestCase):
287289

288290
user = "anonymous"

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ python =
5353
3.7: py37
5454
3.8: py38
5555
3.9: py39
56+
pypy-2.7: pypy27
57+
pypy-3.6: pypy36
58+
pypy-3.7: pypy37

0 commit comments

Comments
 (0)