Skip to content

Commit

Permalink
Merge pull request #53 from gregoil/feature/fix_ut_settings
Browse files Browse the repository at this point in the history
fix bug in importing win32file
  • Loading branch information
osherdp committed Apr 27, 2018
2 parents c598f88 + 64a3da7 commit fd51306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rotest/common/django_utils/ut_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
if platform.system() == 'Windows':
try:
import win32file

core_log.debug("Setting 2048 as the file descriptors limit")
win32file._setmaxstdio(2048) # pylint: disable=protected-access
except ImportError:
import warnings
warnings.warn("Cannot find package 'win32file'. "
"You must install it using 'pip install pypiwin32'")

core_log.debug("Setting 2048 as the file descriptors limit")
win32file._setmaxstdio(2048) # pylint: disable=protected-access

0 comments on commit fd51306

Please sign in to comment.