Skip to content

Commit dc548fd

Browse files
authored
CI: fix failing script/tests (#40457)
* CI: fix failing script/tests * get tokenize_rt from pip * revert tokenize_rt dep
1 parent 5dc5b1a commit dc548fd

5 files changed

+12
-5
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY : develop build clean clean_pyc doc lint-diff black
1+
.PHONY : develop build clean clean_pyc doc lint-diff black test-scripts
22

33
all: develop
44

@@ -25,3 +25,6 @@ doc:
2525
cd doc; \
2626
python make.py clean; \
2727
python make.py html
28+
29+
test-scripts:
30+
pytest scripts

scripts/__init__.py

Whitespace-only changes.

scripts/tests/test_inconsistent_namespace_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from scripts.check_for_inconsistent_pandas_namespace import (
3+
from ..check_for_inconsistent_pandas_namespace import (
44
check_for_inconsistent_pandas_namespace,
55
)
66

scripts/tests/test_validate_docstrings.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import textwrap
33

44
import pytest
5-
import validate_docstrings
5+
6+
from .. import validate_docstrings
67

78

89
class BadDocstrings:
@@ -162,7 +163,9 @@ def test_bad_class(self, capsys):
162163
(
163164
"BadDocstrings",
164165
"indentation_is_not_a_multiple_of_four",
165-
("flake8 error: E111 indentation is not a multiple of four",),
166+
# with flake8 3.9.0, the message ends with four spaces,
167+
# whereas in earlier versions, it ended with "four"
168+
("flake8 error: E111 indentation is not a multiple of ",),
166169
),
167170
(
168171
"BadDocstrings",

scripts/tests/test_validate_unwanted_patterns.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import io
22

33
import pytest
4-
import validate_unwanted_patterns
4+
5+
from .. import validate_unwanted_patterns
56

67

78
class TestBarePytestRaises:

0 commit comments

Comments
 (0)