Add test coverage for python3 · snippet-java/python-buildpack@789e72f · GitHub
Skip to content

Commit 789e72f

Browse files
committed
Add test coverage for python3
Signed-off-by: Colin Jackson <colin.s.jackson90@gmail.com>
1 parent c87fa0f commit 789e72f

32 files changed

Lines changed: 119 additions & 37 deletions

cf_spec/features/dependencies_spec.rb

Lines changed: 31 additions & 9 deletions

cf_spec/fixtures/features/libffi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
int printf(const char *format, ...);
55
""")
66
C = ffi.dlopen(None) # loads the entire C namespace
7-
arg = ffi.new("char[]", "world") # equivalent to C code: char arg[] = "world";
8-
C.printf("hi there, %s!\n", arg)
7+
arg = ffi.new("char[]", b"world") # equivalent to C code: char arg[] = "world";
8+
C.printf(b"hi there, %s!\n", arg)

cf_spec/fixtures/features/libmemcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
mc["some_key"] = "Some value"
66

77
except pylibmc.ConnectionError:
8-
print "Could not connect"
8+
print("Could not connect")
99

Lines changed: 4 additions & 5 deletions
1.08 MB
Binary file not shown.
-1.07 MB
Binary file not shown.
-192 KB
Binary file not shown.
204 KB
Binary file not shown.
-358 KB
Binary file not shown.
386 KB
Binary file not shown.

0 commit comments

Comments
 (0)