Skip to content

Commit

Permalink
Fix test_set_cwd by using a more uncommon test filename
Browse files Browse the repository at this point in the history
Summary:
D31939211 added a `test.txt` file to the top level of `fbcode` causing this test to fail. Use a more uncommon name to reduce the odds of this happening in the future

clowntown

Reviewed By: girifb

Differential Revision: D32005376

fbshipit-source-id: 94861e57f14304efe9cbbaecbc1f128366dbaa21
  • Loading branch information
calebho authored and facebook-github-bot committed Oct 29, 2021
1 parent d73f0ef commit 2b71601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TestNativeIO(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
cls._tmpdir = tempfile.mkdtemp()
cls._filename = "test.txt"
cls._filename = "test_file_for_iopath_with_a_really_uncommon_name.txt"
# pyre-ignore
with open(os.path.join(cls._tmpdir, cls._filename), "w") as f:
cls._tmpfile = f.name
Expand Down

0 comments on commit 2b71601

Please sign in to comment.