##// END OF EJS Templates
tests: fix variable name regular expression in _genrestoreenv()...
Adam Simpkins -
r33141:f458a670 default
parent child Browse files
Show More
@@ -905,7 +905,7 b' class Test(unittest.TestCase):'
905
905
906 # Only restore environment variable names that the shell allows
906 # Only restore environment variable names that the shell allows
907 # us to export.
907 # us to export.
908 name_regex = re.compile('[a-zA-Z][a-zA-Z0-9_]*')
908 name_regex = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$')
909
909
910 with open(scriptpath, 'w') as envf:
910 with open(scriptpath, 'w') as envf:
911 for name, value in os.environ.items():
911 for name, value in os.environ.items():
General Comments 0
You need to be logged in to leave comments. Login now