diffplug / selfie

Snapshot testing for Java, Kotlin, and the JVM
https://selfie.dev
Apache License 2.0
53 stars 8 forks source link

python: test against older versions of Python #444

Closed nedtwigg closed 4 months ago

nedtwigg commented 4 months ago

As much as I would love to be Python 3.12 only, I think it would be trivially easy to support much older, so we might as well

nedtwigg commented 4 months ago

Okay, so now we're good back to Python 3.10. To keep going we need to use typing.Union.

nedtwigg commented 4 months ago

To get support for Python 3.8 and earlier, we'll need to change ListBackedSet so that it extends typing.Set instead of collections.abc.Set. Happy to take a PR for this, but it's a bit of a hassle and 3.9 is already 4 years old, which seems old enough.