mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
WIP: Correct all typos (#498)
This commit is contained in:
parent
98254a7c1f
commit
ed205e98a1
79 changed files with 162 additions and 162 deletions
|
@ -666,25 +666,25 @@ class ProcessTestCase(BaseTestCase):
|
|||
subprocess.Popen([sys.executable, "-c", "pass#\0"])
|
||||
|
||||
def test_invalid_env(self):
|
||||
# null character in the enviroment variable name
|
||||
# null character in the environment variable name
|
||||
newenv = os.environ.copy()
|
||||
newenv["FRUIT\0VEGETABLE"] = "cabbage"
|
||||
with self.assertRaises(ValueError):
|
||||
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
|
||||
|
||||
# null character in the enviroment variable value
|
||||
# null character in the environment variable value
|
||||
newenv = os.environ.copy()
|
||||
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
|
||||
with self.assertRaises(ValueError):
|
||||
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
|
||||
|
||||
# equal character in the enviroment variable name
|
||||
# equal character in the environment variable name
|
||||
newenv = os.environ.copy()
|
||||
newenv["FRUIT=ORANGE"] = "lemon"
|
||||
with self.assertRaises(ValueError):
|
||||
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
|
||||
|
||||
# equal character in the enviroment variable value
|
||||
# equal character in the environment variable value
|
||||
newenv = os.environ.copy()
|
||||
newenv["FRUIT"] = "orange=lemon"
|
||||
with subprocess.Popen([sys.executable, "-c",
|
||||
|
|
2
third_party/python/Lib/test/test_sys.py
vendored
2
third_party/python/Lib/test/test_sys.py
vendored
|
@ -409,7 +409,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
self.assertTrue(frame is sys._getframe())
|
||||
|
||||
# Verify that the captured thread frame is blocked in g456, called
|
||||
# from f123. This is a litte tricky, since various bits of
|
||||
# from f123. This is a little tricky, since various bits of
|
||||
# threading.py are also in the thread's call stack.
|
||||
frame = d.pop(thread_id)
|
||||
stack = traceback.extract_stack(frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue