Lines Matching +full:windows +full:- +full:remote +full:- +full:only
1 # Test the windows specific win32reg module.
2 # Only win32reg functions not hit here: FlushKey, LoadKey and SaveKey
16 REMOTE_NAME = sys.argv[sys.argv.index("--remote")+1]
22 # Some tests should only run on 64-bit architectures where WOW64 will be.
25 # Starting with Windows 7 and Windows Server 2008 R2, WOW64 no longer uses
27 # Windows 7 and Windows Server 2008 R2 are version 6.1. Due to this, some
28 # tests are only valid up until 6.1
31 # Use a per-process key to prevent concurrent test runs (buildbot!) from
33 test_key_base = "Python Test Key [%d] - Delete Me" % (os.getpid(),)
43 ("Multi-string", ["Lots", "of", "string", "values"], REG_MULTI_SZ),
44 ("Multi-nul", ["", "", "", ""], REG_MULTI_SZ),
46 ("Big String", "x"*(2**14-1), REG_SZ),
81 # Create a sub-key
83 # Give the sub-key some named values
97 # (but before we do, copy the key as an integer - this allows
107 # ... and close that key that way :-)
123 # Read the sub-keys
150 self.fail("Was able to get a second key when I only have one!")
161 # manually just to prove we can :-)
182 self.fail("Could open the non-existent key")
205 self._test_all(HKEY_CURRENT_USER, "日本-subkey")
304 "(are you running in a non-interactive session?)")
310 @unittest.skipUnless(WIN_VER < (5, 2), "Requires Windows XP")
343 # Test for Issue #43984, check -1 was not set by SetValueEx.
345 # value by PyLong_AsUnsignedLong, thus setting -1 as value in the registry.
347 # the value set was not -1.
351 SetValueEx(ck, "test_name_dword", None, REG_DWORD, -1)
352 SetValueEx(ck, "test_name_qword", None, REG_QWORD, -1)
402 @unittest.skipUnless(REMOTE_NAME, "Skipping remote registry tests")
432 # Test that we can create, open, and delete keys in the 32-bit
434 # test the differences of 32 and 64-bit keys before and after the
441 # The key should now be available in the 32-bit area
446 # Write a value to what currently is only in the 32-bit area
450 # The 64-bit version of the key should not be available yet.
456 # Now explicitly open the 64-bit version of the key
462 # Set a new value, which will get reflected to 32-bit
465 # Reflection uses a "last-writer wins policy, so the value we set
466 # on the 64-bit key should be the same on 32-bit
490 # 64-bit area, but let's make sure that didn't happen.
496 # Make sure the 32-bit key is actually there
511 print("Remote registry calls can be tested using",
512 "'test_winreg.py --remote \\\\machine_name'")