From 5c8d003fee214f237075fe7e2733b775e4724b92 Mon Sep 17 00:00:00 2001
From: Dick Marinus <dick@mrns.nl>
Date: Sun, 8 Oct 2017 20:20:03 +0200
Subject: [PATCH] remove shebangs and unusable main code

---
 pymysql/tests/thirdparty/test_MySQLdb/capabilities.py    | 1 -
 pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py         | 1 -
 .../thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py | 9 ---------
 .../thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py      | 5 -----
 4 files changed, 16 deletions(-)

diff --git a/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py b/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
index e4aae206..a69c2fdb 100644
--- a/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
+++ b/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python -O
 """ Script to test database capabilities and the DB-API interface
     for functionality and memory leaks.
 
diff --git a/pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py b/pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
index e8665248..3cbf2263 100644
--- a/pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
+++ b/pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 ''' Python DB API 2.0 driver compliance unit test suite.
 
     This software is Public Domain and may be used without restrictions.
diff --git a/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py b/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py
index 9cacbbd3..df8ffa24 100644
--- a/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py
+++ b/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 from . import capabilities
 try:
     import unittest2 as unittest
@@ -99,11 +98,3 @@ def test_literal_float(self):
 
     def test_literal_string(self):
         self.assertTrue("'foo'" == self.connection.literal("foo"))
-
-
-if __name__ == '__main__':
-    if test_MySQLdb.leak_test:
-        import gc
-        gc.enable()
-        gc.set_debug(gc.DEBUG_LEAK)
-    unittest.main()
diff --git a/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py b/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
index ca430fd0..a2669162 100644
--- a/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
+++ b/pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 from . import dbapi20
 import pymysql
 from pymysql.tests import base
@@ -204,7 +203,3 @@ def test_nextset(self):
 
         finally:
             con.close()
-
-
-if __name__ == '__main__':
-    unittest.main()