From 3cff83be26d37b08aeeea30f7e1728246acc9443 Mon Sep 17 00:00:00 2001
From: Phil <phil@secdev.org>
Date: Thu, 5 Nov 2009 14:59:26 +0100
Subject: [PATCH] Added import_tester to detect import loops

---
 test/import_tester | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100755 test/import_tester

diff --git a/test/import_tester b/test/import_tester
new file mode 100755
index 00000000..eebaba60
--- /dev/null
+++ b/test/import_tester
@@ -0,0 +1,3 @@
+#! /bin/bash
+cd "$(dirname $0)/.."
+find scapy -name '*.py' | sed -e 's#/#.#g' -e 's/\(\.__init__\)\?\.py$//'  | while read a; do echo "######### $a"; python -c "import $a"; done
-- 
GitLab