8000 Improve stubgen tests by bluenote10 · Pull Request #16760 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Improve stubgen tests #16760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix broken pre-delete bug in test-stubgenc.sh
  • Loading branch information
bluenote10 committed Jan 7, 2024
commit ffb13a68f1f03b1da2cbd8f5a06ccd47f06fa651
3 changes: 2 additions & 1 deletion misc/test-stubgenc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ EXIT=0
function stubgenc_test() {
# Remove expected stubs and generate new inplace
STUBGEN_OUTPUT_FOLDER=./test-data/pybind11_mypy_demo/$1
rm -rf "${STUBGEN_OUTPUT_FOLDER:?}/*"
rm -rf "${STUBGEN_OUTPUT_FOLDER:?}"

stubgen -o "$STUBGEN_OUTPUT_FOLDER" "${@:2}"

# Check if generated stubs can actually be type checked by mypy
Expand Down
0