Skip to content

remove shebangs and unusable main code #609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python -O
""" Script to test database capabilities and the DB-API interface
for functionality and memory leaks.

Expand Down
1 change: 0 additions & 1 deletion pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
from . import capabilities
try:
import unittest2 as unittest
Expand Down Expand Up @@ -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()
5 changes: 0 additions & 5 deletions pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
from . import dbapi20
import pymysql
from pymysql.tests import base
Expand Down Expand Up @@ -204,7 +203,3 @@ def test_nextset(self):

finally:
con.close()


if __name__ == '__main__':
unittest.main()