Skip to content

[red-knot] Property tests: account non-fully-static types#14897

Merged
sharkdp merged 2 commits intomainfrom
david/property-test-fixes
Dec 10, 2024
Merged

[red-knot] Property tests: account non-fully-static types#14897
sharkdp merged 2 commits intomainfrom
david/property-test-fixes

Conversation

@sharkdp
Copy link
Copy Markdown
Contributor

@sharkdp sharkdp commented Dec 10, 2024

Summary

I probably broke these tests myself in #14758. I don't know how that happened because I even added a new property test there, but maybe I ran the tests with a filter. Anyway, adding a is_fully_static premise to these two tests seems like the right thing to do.

There is another (actual) problem with assignable_to_is_reflexive which we'll also need to address, I'll open a ticket.

Test Plan

cargo test -p red_knot_python_semantic -- --ignored types::property_tests::stable

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Dec 10, 2024
Copy link
Copy Markdown
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

I guess we could also add a non_fully_static_types_do_not_participate_in_equivalence test?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 10, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@sharkdp sharkdp enabled auto-merge (squash) December 10, 2024 19:51
@sharkdp sharkdp merged commit 1a3c311 into main Dec 10, 2024
@sharkdp sharkdp deleted the david/property-test-fixes branch December 10, 2024 19:55
dcreager added a commit that referenced this pull request Dec 10, 2024
* main:
  [red-knot] split call-outcome enums to their own submodule (#14898)
  [red-knot] Property tests: account non-fully-static types (#14897)
  ruff: add worktree support to build.rs (#14896)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants