/usr/lib/python3/dist-packages/twisted/python/test
NameSizeModeActions
__pycache__/-0755rm
deprecatedattributes.py5710644editdlrm
modules_helpers.py16050644editdlrm
pullpipe.py12200644editdlrm
test_appdirs.py10810644editdlrm
test_components.py259740644editdlrm
test_constants.py381170644editdlrm
test_deprecate.py389300644editdlrm
test_dist3.py18580644editdlrm
test_fakepwd.py141070644editdlrm
test_htmlizer.py12660644editdlrm
test_inotify.py36390644editdlrm
test_release.py410460644editdlrm
test_runtime.py79260644editdlrm
test_sendmsg.py252330644editdlrm
test_setup.py124130644editdlrm
test_shellcomp.py218090644editdlrm
test_syslog.py49480644editdlrm
test_systemd.py64010644editdlrm
test_textattributes.py7120644editdlrm
test_tzhelper.py39840644editdlrm
test_url.py299280644editdlrm
test_urlpath.py103280644editdlrm
test_util.py364600644editdlrm
test_versions.py54000644editdlrm
test_zippath.py34740644editdlrm
test_zipstream.py123080644editdlrm
_deprecatetests.py.3only18140644editdlrm
__init__.py420644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/test/test_dist3.py (1858B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.dist3}. """ from __future__ import absolute_import, division import os import twisted from twisted.trial.unittest import TestCase from twisted.python.compat import _PY3 from twisted.python._setup import notPortedModules class ModulesToInstallTests(TestCase): """ Tests for L{notPortedModules}. """ def test_exist(self): """ All modules listed in L{notPortedModules} exist on Py2. """ root = os.path.dirname(os.path.dirname(twisted.__file__)) for module in notPortedModules: segments = module.split(".") segments[-1] += ".py" path = os.path.join(root, *segments) alternateSegments = module.split(".") + ["__init__.py"] packagePath = os.path.join(root, *alternateSegments) self.assertTrue(os.path.exists(path) or os.path.exists(packagePath), "Module {0} does not exist".format(module)) def test_notexist(self): """ All modules listed in L{notPortedModules} do not exist on Py3. """ root = os.path.dirname(os.path.dirname(twisted.__file__)) for module in notPortedModules: segments = module.split(".") segments[-1] += ".py" path = os.path.join(root, *segments) alternateSegments = module.split(".") + ["__init__.py"] packagePath = os.path.join(root, *alternateSegments) self.assertFalse(os.path.exists(path) or os.path.exists(packagePath), "Module {0} exists".format(module)) if _PY3: test_exist.skip = "Only on Python 2" else: test_notexist.skip = "Only on Python 3"