Skip to content

Commit aac672c

Browse files
committed
Add comments
Sort also imports.
1 parent 4746cf3 commit aac672c

18 files changed

+76
-19
lines changed

Lib/test/test_os/test_dirfd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Tests for the posix *at functions.
33
"""
44

5-
import posix
5+
import errno
66
import os
7-
import unittest
8-
import time
7+
import posix
98
import stat
10-
import errno
9+
import time
10+
import unittest
1111
from contextlib import contextmanager
1212
from test import support
1313
from test.support import os_helper

Lib/test/test_os/test_encoding.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test encodings: filename encoding, os.fsencode(), device_encoding(), etc.
3+
"""
4+
15
import codecs
26
import locale
37
import os

Lib/test/test_os/test_environ.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test the environment: os.environ, putenv(), etc.
3+
"""
4+
15
import os
26
import posix
37
import subprocess

Lib/test/test_os/test_fd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test file descriptors: pipe(), set_blocking(), memfd_create(), eventfd, etc.
3+
"""
4+
15
import errno
26
import itertools
37
import os

Lib/test/test_os/test_file.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test files: open(), read(), pwritev(), truncate(), etc.
3+
"""
4+
15
import errno
26
import os
37
import posix

Lib/test/test_os/test_fspath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import unittest
21
import os
32
import types
3+
import unittest
44
from test.support.os_helper import FakePath
55

66

Lib/test/test_os/test_link.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test symbolic and hard links: os.link(), os.symlink(), etc.
3+
"""
4+
15
import os
26
import posix
37
import shutil

Lib/test/test_os/test_macos_weaklink.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
import unittest
1+
"""
2+
Test macOS weak linking.
3+
"""
4+
25
import os
3-
import sys
46
import posix
7+
import sys
8+
import unittest
59
from test.support import os_helper
610

711

Lib/test/test_os/test_process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
2-
Tests on processes: spawn(), exec(), fork(), waitpid(), etc.
2+
Tests processes: spawn(), exec(), fork(), waitpid(), etc.
33
"""
4+
45
import contextlib
56
import errno
67
import os

Lib/test/test_os/test_random.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Test random bytes: getrandom(), urandom(), etc.
3+
"""
4+
15
import errno
26
import os
37
import resource

0 commit comments

Comments
 (0)