Skip to content
Permalink
Browse files

Do not run real fs tests by defaults

- tests are enabled by an environment variable, set in CI tests
- see #465
  • Loading branch information...
mrbean-bremen committed Feb 5, 2019
1 parent 4e93a2b commit 3ad8ec3143823048457464e67cab0a574cf04017
Showing with 5 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +1 −0 appveyor.yml
  3. +3 −0 pyfakefs/tests/test_utils.py
@@ -50,6 +50,7 @@ install:
- ./.travis/install.sh

script:
- export TEST_REAL_FS=1
- ./.travis/run_tests.sh
- ./.travis/run_pytest.sh
- ./.travis/docker_tests.sh
@@ -15,6 +15,7 @@ install:
build: off

test_script:
- SET TEST_REAL_FS=1
- "%PYTHON%\\python.exe -m pyfakefs.tests.all_tests"
- "%PYTHON%\\python.exe -m pyfakefs.tests.all_tests_without_extra_packages"
- "%PYTHON%\\python.exe -m pytest pyfakefs\\tests\\pytest\\pytest_plugin_test.py"
@@ -369,6 +369,9 @@ def setUp(self):
self.open = fake_filesystem.FakeFileOpen(self.filesystem)
self.os = fake_filesystem.FakeOsModule(self.filesystem)
self.create_basepath()
elif not os.environ.get('TEST_REAL_FS'):
self.skip_real_fs()

self.setUpFileSystem()

def setUpFileSystem(self):

0 comments on commit 3ad8ec3

Please sign in to comment.
You can’t perform that action at this time.