From a7ba3605768e5cd2f797d11913a23726f55f2eba Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 8 May 2018 21:50:14 -0400 Subject: Fix issue where at least test/Java/JAR.py test fail only on windows because source file test1.class is first converted to a File object, and then has toupper() called on it (via _my_normcase only on windows), and the result of which is the source list is empty which causes the fake jar part of the test to fail --- src/engine/SCons/Tool/jar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/jar.py b/src/engine/SCons/Tool/jar.py index 5e3711a..6e319c1 100644 --- a/src/engine/SCons/Tool/jar.py +++ b/src/engine/SCons/Tool/jar.py @@ -140,7 +140,7 @@ def Jar(env, target = None, source = [], *args, **kw): # source for jar, otherwise turn it into a class file then # return the source def file_to_class(s): - if(str(_my_normcase(s)).endswith(java_suffix)): + if _my_normcase(str(s)).endswith(java_suffix): return env.JavaClassFile(source = s, *args, **kw) else: return [env.fs.File(s)] -- cgit v0.12