Skip to content

Commit 91465d8

Browse files
committed
Fix checking for Windows
1 parent 5ceaac3 commit 91465d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

audeer/core/io.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def common_directory(
6363
part of the directory tree that is common to all the directories
6464
6565
Examples:
66-
.. skip: start if(platform.system == "Windows")
66+
.. skip: start if(platform.system() == "Windows")
6767
6868
>>> paths = [
6969
... "/home/user1/tmp/coverage/test",
@@ -501,7 +501,7 @@ def list_dir_names(
501501
FileNotFoundError: if path does not exists
502502
503503
Examples:
504-
.. skip: start if(platform.system == "Windows")
504+
.. skip: start if(platform.system() == "Windows")
505505
506506
>>> path = audeer.path("path")
507507
>>> _ = mkdir(path, "a", ".b", "c")
@@ -570,7 +570,7 @@ def list_file_names(
570570
and ``os.dirname(path)`` does not exist
571571
572572
Examples:
573-
.. skip: start if(platform.system == "Windows")
573+
.. skip: start if(platform.system() == "Windows")
574574
575575
>>> dir_path = audeer.mkdir("path")
576576
>>> _ = audeer.touch(dir_path, "file.wav")
@@ -988,7 +988,7 @@ def script_dir() -> str:
988988
current directory of caller
989989
990990
Examples:
991-
.. skip: next if(platform.system == "Windows")
991+
.. skip: next if(platform.system() == "Windows")
992992
993993
>>> audeer.script_dir() # location of this file
994994
'...audeer/core'

0 commit comments

Comments
 (0)