diff options
| author | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2012-11-27 00:44:17 +0100 |
|---|---|---|
| committer | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2012-11-27 00:44:17 +0100 |
| commit | 11491404365ba925bb36935a9f7a14c1afe003cc (patch) | |
| tree | 5ef291cac4a3db9a1c69c18c0adfc8915f563d13 /setuptools/tests/test_resources.py | |
| parent | 753f783100cf598316e9030dcf59b24772819504 (diff) | |
| download | python-setuptools-git-11491404365ba925bb36935a9f7a14c1afe003cc.tar.gz | |
Disable workaround for Jython scripts on Linux systems.
--HG--
branch : distribute
extra : rebase_source : 289980b084c335029d93732feb8e02da94472795
Diffstat (limited to 'setuptools/tests/test_resources.py')
| -rw-r--r-- | setuptools/tests/test_resources.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index d08fa325..0bc1a095 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -561,6 +561,15 @@ class ScriptHeaderTests(TestCase): if (sys.version_info >= (3,) and os.environ.get("LC_CTYPE") in (None, "C", "POSIX")): return + + class java: + class lang: + class System: + @staticmethod + def getProperty(property): + return "" + sys.modules["java"] = java + platform = sys.platform sys.platform = 'java1.5.0_13' stdout = sys.stdout @@ -584,6 +593,7 @@ class ScriptHeaderTests(TestCase): '#!%s -x\n' % self.non_ascii_exe) self.assertTrue('Unable to adapt shebang line' in sys.stdout.getvalue()) finally: + del sys.modules["java"] sys.platform = platform sys.stdout = stdout |
