Skip to content

Commit 9f34ec0

Browse files
committed
[GR-64567] Make sys.windowsversion not instantiable
PullRequest: graalpython/3772
2 parents 0e5c2b7 + 74e5084 commit 9f34ec0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_mmap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ test.test_mmap.MmapTests.test_prot_readonly @ darwin-arm64,darwin-x86_64,linux-a
1919
test.test_mmap.MmapTests.test_read_all @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
2020
test.test_mmap.MmapTests.test_read_invalid_arg @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
2121
test.test_mmap.MmapTests.test_subclass @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
22-
test.test_mmap.MmapTests.test_tougher_find @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
22+
test.test_mmap.MmapTests.test_tougher_find @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64
2323
test.test_mmap.MmapTests.test_write_returning_the_number_of_bytes_written @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/PythonBuiltinClassType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ accepted by asctime(), mktime() and strftime(). May be considered as a
873873
sys.version_info
874874
875875
Version information as a named tuple.""")),
876-
PWindowsVersion("windowsversion", PTuple, newBuilder().publishInModule("sys").slots(StructSequenceBuiltins.SLOTS, InstantiableStructSequenceBuiltins.SLOTS).doc("""
876+
PWindowsVersion("windowsversion", PTuple, newBuilder().publishInModule("sys").disallowInstantiation().slots(StructSequenceBuiltins.SLOTS).doc("""
877877
sys.getwindowsversion
878878
879879
Return info about the running version of Windows as a named tuple.""")),

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/tuple/InstantiableStructSequenceBuiltins.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
PythonBuiltinClassType.PProfilerSubentry,
8888
PythonBuiltinClassType.PStructPasswd,
8989
PythonBuiltinClassType.PStructRusage,
90-
PythonBuiltinClassType.PWindowsVersion,
9190
PythonBuiltinClassType.PFloatInfo,
9291
PythonBuiltinClassType.PIntInfo,
9392
PythonBuiltinClassType.PHashInfo,

0 commit comments

Comments
 (0)