python: revision for gdbm

add regression test for gdbm module import

Fixes #22369.

Closes #22394.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
ilovezfs 2018-01-03 02:08:07 -08:00
parent 6e47c32a99
commit 74153ecbf7
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ class Python < Formula
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz"
sha256 "71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66"
revision 1
head "https://github.com/python/cpython.git", :branch => "2.7"
bottle do
@ -374,6 +375,7 @@ class Python < Formula
system "#{bin}/python2", "-c", "import sqlite3"
# Check if some other modules import. Then the linked libs are working.
system "#{bin}/python2", "-c", "import Tkinter; root = Tkinter.Tk()"
system "#{bin}/python2", "-c", "import gdbm"
system bin/"pip2", "list"
end
end