14
0
forked from pool/python-pygame

------------------------------------------------------------------

- Add python-pygame-python38-import.patch from upstream to fix a build 
  failure with Python 3.8.
- Use autopatch macro rather than patch0, due to multiple patches.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygame?expand=0&rev=26
This commit is contained in:
2019-10-15 04:14:19 +00:00
committed by Git OBS Bridge
parent 9a34c4807f
commit fec2dea4dd
3 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
From 9b5f88bca562f37d30eb7ac0f8f4ebdda68cb494 Mon Sep 17 00:00:00 2001
From: Christoph Gohlke <cjgohlke@gmail.com>
Date: Wed, 14 Aug 2019 14:01:06 -0700
Subject: [PATCH] Fix test error on Python 3.8.0b3
Fix `ImportError: cannot import name 'clock' from 'time' (unknown location)`
---
test/math_test.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/test/math_test.py b/test/math_test.py
index c0bb84eb3..f22ba5e12 100644
--- a/test/math_test.py
+++ b/test/math_test.py
@@ -2,7 +2,6 @@
import sys
import unittest
import math
-from time import clock
import platform
import pygame.math