aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2020-10-09 16:31:09 -0700
committerStefano Rivera <stefano@rivera.za.net>2020-10-09 16:31:09 -0700
commit8890de983d629accc3d3f15da469dd166224f028 (patch)
treeaea70033d4cd1d96af47663e66ddb0323faf16e6 /extra_tests
parenttest_multiprocessing: Sprinkle some explicit GC collection into tests expecti... (diff)
downloadpypy-8890de983d629accc3d3f15da469dd166224f028.tar.gz
pypy-8890de983d629accc3d3f15da469dd166224f028.tar.bz2
pypy-8890de983d629accc3d3f15da469dd166224f028.zip
This is Python 2, no f-strings yet
Diffstat (limited to 'extra_tests')
-rw-r--r--extra_tests/ctypes_tests/test_buffers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra_tests/ctypes_tests/test_buffers.py b/extra_tests/ctypes_tests/test_buffers.py
index d71819bf06..b862cb317c 100644
--- a/extra_tests/ctypes_tests/test_buffers.py
+++ b/extra_tests/ctypes_tests/test_buffers.py
@@ -55,15 +55,15 @@ s_ulong = {4: 'L', 8: 'Q'}[sizeof(c_long)]
(c_ubyte, "<B"),
(c_short, "<h"),
(c_ushort, "<H"),
- (c_long, f"<{s_long}"),
- (c_ulong, f"<{s_ulong}"),
+ (c_long, "<" + s_long),
+ (c_ulong, "<" + s_ulong),
(c_float, "<f"),
(c_double, "<d"),
(c_bool, "<?"),
(py_object, "<O"),
## pointers
(POINTER(c_byte), "&<b"),
- (POINTER(POINTER(c_long)), f"&&<{s_long}"),
+ (POINTER(POINTER(c_long)), "&&<" + s_long),
## arrays and pointers
(c_double * 4, "<d"),
(c_float * 4 * 3 * 2, "<f"),