Skip to content

Commit

Permalink
Merge pull request #3637 from t20100/fix-test
Browse files Browse the repository at this point in the history
Fixed running tests
  • Loading branch information
vallsv authored Aug 19, 2022
2 parents 44b5008 + e2370c7 commit 6d9102b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/silx/test/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2015-2021 European Synchrotron Radiation Facility
# Copyright (c) 2015-2022 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -49,5 +49,5 @@ def run_tests(module: str='silx', verbosity: int=0, args=()):
str(verbosity),
'-o python_files=["test/test*.py","test/Test*.py"]',
'-o python_classes=["Test"]',
'-o python_functions=["Test"]',
'-o python_functions=["test"]',
] + list(args))
4 changes: 2 additions & 2 deletions src/silx/utils/test/test_external_resources.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2016-2021 European Synchrotron Radiation Facility
# Copyright (c) 2016-2022 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -59,7 +59,7 @@ def setUpClass(cls):
raise unittest.SkipTest("Network or silx website not available")

def setUp(self):
self.resources = ExternalResources("toto", "http://www.silx.org/pub/silx/")
self.resources = ExternalResources("toto%d" % os.getpid(), "http://www.silx.org/pub/silx/")

def tearDown(self):
if self.resources.data_home:
Expand Down

0 comments on commit 6d9102b

Please sign in to comment.