Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df48266

Browse filesBrowse files
committed
Added tests for os.pathconf_names
1 parent d8fe778 commit df48266
Copy full SHA for df48266

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎extra_tests/snippets/stdlib_os.py

Copy file name to clipboardExpand all lines: extra_tests/snippets/stdlib_os.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,11 @@ def __exit__(self, exc_type, exc_val, exc_tb):
507507

508508
for arg in [None, 1, 1.0, TabError]:
509509
assert_raises(TypeError, os.system, arg)
510+
511+
# Testing for os.pathconf_names
512+
if "win" not in sys.platform:
513+
assert len(os.pathconf_names) > 0
514+
assert 'PC_NAME_MAX' in os.pathconf_names
515+
for option,index in os.pathconf_names.items():
516+
assert os.pathconf('/',index) == os.pathconf('/',option)
517+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.