Skip to content

Commit

Permalink
Fail if run with Python below 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorn committed Jul 19, 2023
1 parent 84eb5f0 commit 94daeab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
if sys.version_info.major < 3 or (sys.version_info.major == 3 and sys.version_info.minor < 10):
raise RuntimeError("Tests require at least version 3.10 of Python. Current version is: {}".format(sys.version))

0 comments on commit 94daeab

Please sign in to comment.