diff options
| author | Christian Tismer <tismer@stackless.com> | 2020-10-27 11:34:32 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2020-10-27 21:13:20 +0000 |
| commit | dcced0742f383b1932d0e56323387fbd8aeb4513 (patch) | |
| tree | ccafffb6ffb68c9b8ddbeb1ade1ac5c8a1efa59b /sources/shiboken2/tests/samplebinding/enum_test.py | |
| parent | 844f1cc2541fe7213ebf2d72039ef28a04e200b4 (diff) | |
remove traces of Python2 from Python code
It will be assumed that Python is always Python 3.
All checks for Python 2 are removed.
This is the first part of cleaning up the Python code.
We will then also clean the C code.
Task-number: PYSIDE-904
Change-Id: I06050a8c1a18a19583f551b61775833a91673f4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/enum_test.py')
| -rw-r--r-- | sources/shiboken2/tests/samplebinding/enum_test.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sources/shiboken2/tests/samplebinding/enum_test.py b/sources/shiboken2/tests/samplebinding/enum_test.py index 2ebc8d406..1289dada1 100644 --- a/sources/shiboken2/tests/samplebinding/enum_test.py +++ b/sources/shiboken2/tests/samplebinding/enum_test.py @@ -46,11 +46,8 @@ import sample from sample import SampleNamespace, ObjectType, Event def createTempFile(): - if sys.version_info >= (2, 6): - import tempfile - return tempfile.SpooledTemporaryFile(mode='rw') - else: - return os.tmpfile() + import tempfile + return tempfile.SpooledTemporaryFile(mode='rw') class EnumTest(unittest.TestCase): '''Test case for Python representation of C++ enums.''' |
