Skip to content

Commit

Permalink
Merge standalone-setup3-6228-2
Browse files Browse the repository at this point in the history
Author: therve
Reviewer: rwall
Fixes: twisted#6228

Remove admin/_twistedpython3.py and put the list of ported modules in setup3.py
so that a source tarball can be installed with it.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@38607 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
  • Loading branch information
therve committed Jun 1, 2013
1 parent 86a7e8e commit 3446fbe
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 257 deletions.
242 changes: 0 additions & 242 deletions admin/_twistedpython3.py

This file was deleted.

8 changes: 6 additions & 2 deletions admin/run-python3-tests
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ sys.path.insert(0, twistedPath)
if sys.argv[1:]:
testModules = sys.argv[1:]
else:
from _twistedpython3 import testModules
modules = {}
with open(os.path.join(twistedPath, "setup3.py")) as setup:
data = setup.read()
code = compile(data, "setup3.py", "exec")
exec(code, modules)
testModules = modules["testModules"]

# Avoid dumping trash all over the place
os.chdir(tempfile.mkdtemp(prefix="tw-py3-"))

# Run the tests
unittest.main(module=None, argv=["run-python3-tests", "-v"] + testModules)

Loading

0 comments on commit 3446fbe

Please sign in to comment.