Skip to content

Commit df48266

Browse files
committed
Added tests for os.pathconf_names
1 parent d8fe778 commit df48266

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extra_tests/snippets/stdlib_os.py

Lines 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)