python3: revision for gdbm

add regression test for _gdbm module import

Closes #22395.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2018-01-03 02:23:18 -08:00
parent ed36130bc3
commit 5c1b8d6e22

View file

@ -3,6 +3,7 @@ class Python3 < Formula
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz"
sha256 "159b932bf56aeaa76fd66e7420522d8c8853d486b8567c459b84fe2ed13bcaba"
revision 1
head "https://github.com/python/cpython", :using => :git
bottle do
@ -357,6 +358,7 @@ class Python3 < Formula
system "#{bin}/python#{xy}", "-c", "import sqlite3"
# Check if some other modules import. Then the linked libs are working.
system "#{bin}/python#{xy}", "-c", "import tkinter; root = tkinter.Tk()"
system "#{bin}/python#{xy}", "-c", "import _gdbm"
system bin/"pip3", "list"
end
end