Skip to content

Commit dc01c6e

Browse files
meeuwmethane
authored andcommitted
remove shebangs and unusable main code (PyMySQL#609)
1 parent 6e5f4ef commit dc01c6e

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

pymysql/tests/thirdparty/test_MySQLdb/capabilities.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python -O
21
""" Script to test database capabilities and the DB-API interface
32
for functionality and memory leaks.
43

pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
''' Python DB API 2.0 driver compliance unit test suite.
32
43
This software is Public Domain and may be used without restrictions.

pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py

-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
from . import capabilities
32
try:
43
import unittest2 as unittest
@@ -99,11 +98,3 @@ def test_literal_float(self):
9998

10099
def test_literal_string(self):
101100
self.assertTrue("'foo'" == self.connection.literal("foo"))
102-
103-
104-
if __name__ == '__main__':
105-
if test_MySQLdb.leak_test:
106-
import gc
107-
gc.enable()
108-
gc.set_debug(gc.DEBUG_LEAK)
109-
unittest.main()

pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py

-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
from . import dbapi20
32
import pymysql
43
from pymysql.tests import base
@@ -204,7 +203,3 @@ def test_nextset(self):
204203

205204
finally:
206205
con.close()
207-
208-
209-
if __name__ == '__main__':
210-
unittest.main()

0 commit comments

Comments
 (0)