Skip to content

Commit

Permalink
quoting isn't that easy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed May 22, 2019
1 parent d5a5f79 commit f663a58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions htcondor_jobs/handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ def edit(self, attr: str, value: Union[str, int, float]) -> classad.ClassAd:
logger.info(
f"Executing edit {attr} = {value} against schedd {self.schedd} with constraint {cs}"
)
if isinstance(value, str):
value = f'"{value}"'
return self.schedd.edit(cs, attr, str(value))


Expand Down
8 changes: 0 additions & 8 deletions tests/integration/test_handles/test_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,3 @@ def test_change_request_memory(long_sleep):
handle.edit("RequestMemory", 12345)

assert get_job_attr(handle, "RequestMemory") == 12345


def test_change_executable(long_sleep):
handle = jobs.submit(long_sleep, count=1)

handle.edit("Executable", "hello")

assert get_job_attr(handle, "Executable") == "hello"

0 comments on commit f663a58

Please sign in to comment.