Skip to content

Fix nightly clippy warnings - #3817

Merged
youknowone merged 2 commits into
RustPython:mainfrom
youknowone:fix-clippy
Jun 24, 2022
Merged

youknowone merged 2 commits into
RustPython:mainfrom
youknowone:fix-clippy

Conversation

@youknowone

Copy link
Copy Markdown
Member

No description provided.

@fanninpm

Copy link
Copy Markdown
Contributor

We can fix these, but I need to remind myself to switch Clippy to the stable channel next Thursday (when Rust 1.62 is released).

Regarding that failure in test_strtod, I think the offending test should be just outright skipped.

Comment thread Lib/test/test_strtod.py Outdated
@unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON, possibly flaky test on Windows?")
# TODO: RUSTPYTHON, Incorrectly rounded str->float conversion for -07e-321
@unittest.expectedFailure
@unittest.skip("TODO: RUSTPYTHON, possibly flaky test on Windows?")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not just on Windows. (I wonder if it's related to why test_halfway_cases is flaky…)

Suggested change
@unittest.skip("TODO: RUSTPYTHON, possibly flaky test on Windows?")
@unittest.skip("TODO: RUSTPYTHON, possibly flaky test?")

@fanninpm fanninpm changed the title Fix nightly clippy warnings Fix beta clippy warnings Jun 23, 2022
@youknowone youknowone changed the title Fix beta clippy warnings Fix nightly clippy warnings Jun 24, 2022
@youknowone

Copy link
Copy Markdown
Member Author

@fanninpm I didn't fix beta warnings. I used nightly clippy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants